I'm using the following rest call to get a list of features. I wanted to 
limit the attributes returned and added propertyName to the request:

http://example.com:8080/geoserver/bicitalia/ows?service=WFS
&version=1.0.0
&request=GetFeature
&typeName=myworkspace:mylayer
&maxfeatures=50
&outputformat=application%2Fjson
&propertyName=attribute1,attribute2,geom

The problem is I get other fields too.

{
   "type":"Feature",
   "id":"an_id",
   "geometry":{"type":"MultiLineString",
   "coordinates":[[...]]},
   "geometry_name":"geom",
   "properties":
   {
         "attribute1":4,
         "attribute8":5,
         "attribute6":false,
         "attribute2":"52",
         "attribute11":false
   }
}

Why is that?

I'm using geoserver 2.5.

Thank you
        maxx

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to