paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

geojson: don't error on nil geometry #58

Closed paulmach closed 3 years ago

paulmach commented 3 years ago

As discussed in https://github.com/paulmach/orb/issues/38#issuecomment-760811266

nil/missing Geometry in a GeoJSON is valid according to the spec https://tools.ietf.org/html/rfc7946#section-3.2

This will change behavior as previous it would fail, now it just silently continues.