[OpenLayers-Users] GML feature attributes

Chris Green chris.green at ibstv.co.uk
Tue Apr 20 12:00:12 EDT 2010


Hi Bart

That fixed it. Thanks, you are a star!


Chris

-----Original Message-----
From: Bart van den Eijnden [mailto:bartvde at osgis.nl] 
Sent: 20 April 2010 15:48
To: chris.green at ibstv.co.uk
Cc: 'David Fawcett'; users at openlayers.org
Subject: Re: [OpenLayers-Users] GML feature attributes

Add

METADATA
  "gml_include_items" "all"
END

to your LAYER definition.

Bart

On Apr 20, 2010, at 4:44 PM, Chris Green wrote:

> Hi David
> 
> I am using MapServer. Looking at the response in Firefox it is only
sending
> geometry, no attributes. Any idea how to persuade it to be more
forthcoming?
> 
> 
> Chris
> 
> -----Original Message-----
> From: David Fawcett [mailto:david.fawcett at gmail.com] 
> Sent: 20 April 2010 15:04
> To: chris.green at ibstv.co.uk
> Cc: users at openlayers.org
> Subject: Re: [OpenLayers-Users] GML feature attributes
> 
> 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
>> 
>> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 






More information about the Users mailing list