INSPIRE-MIF / 2017.2

Repository for action 2017.2 on alternative encodings
6 stars 11 forks source link

GeoJSON discussion Netherlands #52

Closed PalmJanssen closed 5 years ago

PalmJanssen commented 5 years ago

This is a link to the GML.next GeoJSON discussion we opened this year:

https://geoforum.nl/t/gml-next-hoe-zet-je-json-geojson-in-als-lichter-alternatief-voor-online-toepassingen/1681

pvgenuchten commented 5 years ago

Short summary on the discussion:

Typical use case of geojson is: having 1 featuretype, having 1 geometrytype, having epsg:4326, having no nesting. Any deviation of this will break implementations somewhere.

GeoJSON is currently incompatible with json-ld

thorsten-reitz commented 5 years ago

Hi Paul(s), thanks for the summary. Adding rules on requiring just one feature type per GeoJSON file and having a homogeneous Geometry type would be possible.

At least for the two profiles that are currently in the spec, there are no nested properties, though there may be lists of primitive values (Strings, Numbers).

The current spec effectively treats EPSG:4258 and EPSG:4326 as equivalent to ensure compliance to the INSPIRE IR. Data sets for which this equivalence would be problematic may not use GeoJSON as an alternative encoding, only as an additional encoding.

pvgenuchten commented 5 years ago

Adding rules on requiring just one feature type per GeoJSON file and having a homogeneous Geometry type would be possible.

If applying strict geojson, also consider how to guide data providers on how to implement a transformation. For example if a GML has multiple featuretypes and/or geometrytypes, consider to advice to split the file in multiple files. Add a link to each of the files in Metadata or Atom.

A wfs response to a user requesting a simplified format will be more challenging. Maybe provide a zip-file having individual files for featuretypes and geometrytypes?