[OpenLayers-Users] GML feature attributes
David Fawcett
david.fawcett at gmail.com
Tue Apr 20 12:00:57 EDT 2010
Thanks Bart. That was exactly where I was going...
On Tue, Apr 20, 2010 at 9:47 AM, Bart van den Eijnden <bartvde at osgis.nl> wrote:
> 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