geojson.io icon indicating copy to clipboard operation
geojson.io copied to clipboard

Misleading error message when adding empty feature collection

Open twpayne opened this issue 1 year ago • 0 comments

Dragging and dropping the following valid GeoJSON file:

{
	"features": [],
	"type": "FeatureCollection"
}

causes geojson.io to give the error message:

Invalid JSON file: Error: Invalid LngLat latitude value: must be between -90 and 90

This error message is incorrect (there are no invalid latitude values). Instead geojson.io should prompt with a "Warning: file contains no features" or similar.

twpayne avatar Apr 10 '24 13:04 twpayne