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

bartvde at osgis.nl bartvde at osgis.nl
Tue Mar 23 09:54:09 EDT 2010


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 so that I don't need to hardcode
the list of attributes.

Best regards,
Bart

>
> 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:
> http://n2.nabble.com/How-to-get-only-attributes-from-WMS-or-WFS-in-Openlayers-tp4783727p4783727.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list