[mapserver-users] Geojson output from WFS is missing ID
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Tue May 10 03:08:07 PDT 2016
Hi,
WFS output from Mapserver 7.0 in GML contain gml:id
<ms:msGeometry><gml:Polygon gml:id="states.1" srsName="urn:ogc:def:crs:EPSG::4326">
However, with GeoJSON as outputformat the id is missing:
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "PK_UID": 1, "STATE_NAME": "Illinois",
GeoJSON specification says in http://geojson.org/geojson-spec.html#feature-objects:
"If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id"."
GeoJSON from Geoserver WFS does contain the id:
{"type":"FeatureCollection","totalFeatures":49,"features":[{"type":"Feature","id":"states.1","geometry":{"type":"MultiPolygon"
Should this be classified as a bug or a candidate for a featere request?
-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160510/d7f689b3/attachment.htm>
More information about the MapServer-users
mailing list