Re: [OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-24 Thread zoggo
Hi Bart, thanks for yours answer. Could you give me a short code example, so I can see how i have to use it in code. thanks a lot! Urs -- View this message in context: http://n2.nabble.com/How-to-get-only-attributes-from-WMS-or-WFS-in-Openlayers-tp4783727p4789847.html Sent from the

[OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-23 Thread zoggo
I need the attributes of a WFS or WMS without getting the geometry. If I load it with a normal WFS-Layer it takes to long downloading all the geometries. Is there a easy way getting only the attributes? Thanks for help! -- View this message in context:

Re: [OpenLayers-Users] How to get only attributes from WMS or WFS in Openlayers

2010-03-23 Thread bartvde
Hi, you can specify propertyNames on the options when you call OpenLayers.Format.WFST write to only get a list of attributes back. See also: http://trac.openlayers.org/ticket/1827 I use a WFS DescribeFeatureType request to get the list of attributes and then I filter out the geometry attribute