Sure, just add the list of propertyNames you want to fetch in your
Protocol options. It's an array of string.

Best regards,
Bart

>
> Hi all,
>
> I want to show in some data grid attribute data from some features. Here's
> my wfsProtocol and feature reader:
>
>               var wfsProtocol = new OpenLayers.Protocol.WFS({
>                                       url : params.proxyhost+params.wfsServer,
>                                       featureType: layer,
>                                       srsName : "EPSG:900913",
>                                       version : "1.1.0",
>                                       readFormat : new 
> OpenLayers.Format.GeoJSON(),
>                                       outputFormat : "JSON"
>                                       });
>
>
>               var wfsReader = wfsFeatures.read({
>                       callback: function(response) {
>                        if(response.success()){
>               var geoJson = new OpenLayers.Format.JSON;
>               data.temp.geoJson = geoJson.read(response.priv.responseText);
>                       } else {
>             alert("failure!");
>               }
>                       }
>               });
>
>
> This all works fine, but I wonder if there is some way to avoid fetching
> geometries, since there is a lot of polygons. I just need attribute data
> from features.
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Read-WFS-features-without-geometry-tp5704770p5704770.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to