[OpenLayers-Users] draw feature example
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Apr 13 00:55:55 EDT 2010
On Mon, Apr 12, 2010 at 3:42 PM, sunny74 <sb.ray at hotmail.com> wrote:
>
> Hi,
>
> Thanks for your reply.
>
> So if I draw a polygon the how can I get some information about the features
> covered by the polygon.
> Atleast the feature name or the lonlat so that using the lonlat I am able to
> make a GFI request.
You can use WFS.
Create an "intersects" (or "contains") spatial with filter. See
<http://dev.openlayers.org/apidocs/files/OpenLayers/Filter/Spatial-js.html>.
And send this filter through a WFS protocol. See the wfs-protocol.html
example to know how to create a WFS protocol. To send the filter you'd
use protocol.read({filter: yourSpatialFilter}).
Hope it helps,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list