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

thomas bonfort thomas.bonfort at gmail.com
Tue May 10 03:21:46 PDT 2016


My bad, the fix isn't in 7.0.1 but will be in 7.0.2

On 10 May 2016 at 12:15, thomas bonfort <thomas.bonfort at gmail.com> wrote:

> 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/3f8c7bfd/attachment-0001.html>


More information about the mapserver-users mailing list