[TinyOWS-users] Geojson comes always with geometry
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Thu Nov 17 12:47:41 EST 2011
Hi,
I noticed that if I send to http://188.64.1.61/cgi-bin/tinyows a GetFeature request which should return only some other attributes but not the geometry, it works as supposed with GML2 and GML3 outputformats. However, if I change the ouputformat into application/json I am getting back also the geometry.
This one sends one feature without geometry as GML3
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="1000" outputFormat="GML3"><wfs:Query xmlns:lv="http://latuviitta.fi/" typeName="lv:pks_pienalue"><ogc:PropertyName>lv:name</ogc:PropertyName><ogc:Filter><ogc:Contains><ogc:PropertyName>lv:the_geom</ogc:PropertyName><gml:Point srsName="EPSG:3067">
<gml:pos srsDimension="2">386777.20648464165 6679152.856655289</gml:pos>
</gml:Point></ogc:Contains></ogc:Filter></wfs:Query></wfs:GetFeature>
This is the same request but with geojson output and it contains also the geometry
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" maxFeatures="1000" outputFormat="application/json"><wfs:Query xmlns:lv="http://latuviitta.fi/" typeName="lv:pks_pienalue"><ogc:PropertyName>lv:name</ogc:PropertyName><ogc:Filter><ogc:Contains><ogc:PropertyName>lv:the_geom</ogc:PropertyName><gml:Point srsName="EPSG:3067">
<gml:pos srsDimension="2">386777.20648464165 6679152.856655289</gml:pos>
</gml:Point></ogc:Contains></ogc:Filter></wfs:Query></wfs:GetFeature>
Is geometry compulsory in geojson format or is this more like a bug?
-Jukka Rahkonen-
More information about the TinyOWS-users
mailing list