-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.01_CS01
-
Fix Version/s: V4.01_CS02
-
Component/s: JSON Format
-
Labels:
-
Environment:
Applied
-
Proposal:
-
Resolution:
Two issues with the JSON Format specification and GeoJSON:
1) The JSON Format specification states
Geography and geometry values are represented as geometry types as defined in [RFC7946, with the following modifications:
- Keys SHOULD be ordered with type first, then coordinates, then any other keys
- The coordinates member of a LineString can have zero or more positions
- If the optional CRS object is present, it MUST be of type name, where the value of the name member of the contained properties object is an EPSG SRID legacy identifier.
The CRS object is not defined in RFC7946, it was defined in the now obsolete predecessor GeoJSON-2008, and RFC7946 has explicitly removed the concept of "coordinate reference systems" (CRS) and restricts GeoJSON to World Geodetic System 1984 (WGS 84), which (fortunately) is the default for the SRID facet in OData (EPSG 4326).
2) RFC7946 and GeoJSON-2008 require a LineString to have at least two positions: why do we additionally allow zero or one position? And what does that mean?