[mapserver-users] Geojson output from WFS is missing ID

thomas bonfort thomas.bonfort at gmail.com
Tue May 10 03:15:11 PDT 2016


should be fixed in 7.0.1. If not you can open an issue.

https://github.com/mapserver/mapserver/pull/5207

--
thomas

On 10 May 2016 at 12:08, Rahkonen Jukka (MML) <
jukka.rahkonen at maanmittauslaitos.fi> wrote:

> 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-
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160510/0b4c2d58/attachment.html>


More information about the mapserver-users mailing list