[OpenLayers-Users] GML feature attributes
David Fawcett
david.fawcett at gmail.com
Tue Apr 20 10:03:48 EDT 2010
Chris,
I would first verify that your WFS server is sending the attributes in
the getFeature request. Some WFS servers only send the geometry info
by default and need some additional configuration tweaks to include
the attribute info. What are you using as a WFS server?
David.
On Tue, Apr 20, 2010 at 5:30 AM, Chris Green <chris.green at ibstv.co.uk> wrote:
> Hi all
>
>
>
> After much experimentation I have succeeded in creating a vector layer which
> is populated by a WFS GetFeature call to a WMS layer using a DWITHIN spatial
> filter. So I can now display on my vector layer all features within a given
> radius. Success!!!
>
>
>
> However, now I want to get a list of the names of all of the features
> displayed but I can’t find a way to do that because it seems that GetFeature
> with a spatial filter does not return any feature attributes, only the
> contour of each feature that it finds within the filter. Is there a way to
> obtain other feature attributes? (I tried ‘extractAttributes: true’ as a
> parameter in the WFS protocol but this does not help).
>
>
>
> Any comments very welcome.
>
>
>
>
>
> Chris
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
More information about the Users
mailing list