On Tue, Jul 26, 2011 at 6:46 PM, Robert Buckley <[email protected]> wrote: > Hi, > > I need to extract only the properties from my json repsonse from geoserver. > > When the reponse arrives it looks like this... > > "type":"FeatureCollection", > "features":[ > { > "type":"Feature", > "id":"pivot_Dissolve_SG_nenn.1", > "geometry":null, > "properties":{ > "sg":"Bad Harzburg", > "sum_nennle":4865.065, > "sum_biomas":0E-11, > "sum_gas":0E-11, > "sum_solars":951.065, > "sum_wasser":534, > "sum_windkr":3380 > } > }, > { > "type":"Feature", > "id":"pivot_Dissolve_SG_nenn.2", > "geometry":null, > "properties":{ > "sg":"Braunlage", > "sum_nennle":51.16, > "sum_biomas":0E-11, > "sum_gas":0E-11, > "sum_solars":51.16, > "sum_wasser":0E-11, > "sum_windkr":0E-11 > } > },...etc etc > > But I cannot work with this format. I need this... > > { > "sg":"Bad Harzburg", > "sum_nennle":4865.065, > "sum_biomas":0E-11, > "sum_gas":0E-11, > "sum_solars":951.065, > "sum_wasser":534, > "sum_windkr":3380 > }, > :{ > "sg":"Braunlage", > "sum_nennle":51.16, > "sum_biomas":0E-11, > "sum_gas":0E-11, > "sum_solars":51.16, > "sum_wasser":0E-11, > "sum_windkr":0E-11 > },...etc etc > > > Is there a way to only get the properties type "feature" using wfs?
I don't think so, it would not be valid geojson anymore: http://geojson.org/geojson-spec.html Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
