The Point I'd like to include is a marking on a historical map. Most of the items on the map have been located, so they make valid geoJSON Points. A few locations can not be identified, but I'd like to include them in the geoJSON file for completeness. As best I can tell, coordinates: []
and coordinates: null
are rejected by geoJSON readers. Is there another option?
GeoJSON – Include Point Feature with Unknown Coordinates
geojson
Best Answer
GeoJSON readers do not need to reject a geometry with an empty coordinate array, but they may do so:
https://www.rfc-editor.org/rfc/rfc7946#section-3.1
What GeoJSON readers you have been using? If empty geometries fit to the data model of the reader you could file a feature request for the program or library that you are using.
I am not sure if I interpret right the output of ogrinfo, but it seems to me that it understands that the following GeoJSON contains an empty point as a geometry.
GeoJSON:
Output of ogrinfo: