Hi milan
I went into the same problem. AFAIK, there's no solution within the
scope of OGC specification. I had to develop my own webservice, it was
pretty easy in my case since I work with a PostGis backend.
On the client side, I just had to tweak the :
1) Set an appropriate mouse handler in the draw() method of the
underlying OpenLayers control. Try the following for example if you need
a circular selection tool:
this.handler = new OpenLayers.Handler.RegularPolygon(
this,
{done: this.selectBox},
{keyMask: this.keyMask, sides: 40}
);
The OpenLayers.Handler.Polygon handler should enable any polygon to be
drawn.
2) Adapt the selectBox method (of the same Control object) to your
webservice specification. I've been able to send my geometry as WKT
thanks to the OpenLayers.Format.WKT objects.
Hope it helps
Gilles
milan.antonovic wrote:
Hi all,
I am new to Mapbuilder...
Does anyone knows how to make a widget like the "WfsGetFeature" that instead
of quering the map with a point or a rectangle it queries the map with an
(irregular) polygon?
Thanks..
rgds
Milan
--
Gilles Bassiere
MAKINA CORPUS
30 rue des Jeuneurs
FR-75002 PARIS
+33 (0) 1 44 82 00 80
http://www.makina-corpus.com
begin:vcard
fn;quoted-printable:Gilles Bassi=C3=A8re
n;quoted-printable:Bassi=C3=A8re;Gilles
org:Makina Corpus;GIS
adr;quoted-printable:;;30 rue des Je=C3=BBneurs;Paris;;FR-75011;France
email;internet:[EMAIL PROTECTED]
title:Web GIS developper
tel;work:+33 (0) 1 44 82 00 80
x-mozilla-html:FALSE
url:http://www.makina-corpus.com
version:2.1
end:vcard
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users