Geojson: allow null geometry objects by hansthen · Pull Request #1858 · python-visualization/folium

added 2 commits

January 8, 2024 21:01

@hansthen

@Conengmo Conengmo changed the title Fix error for geojson objects with null geometry objects Geojson: allow null geometry objects

Jan 21, 2024

hansthen added a commit to hansthen/folium that referenced this pull request

Jan 24, 2024
* GeoJson objects can have null geometry objects

See https://datatracker.ietf.org/doc/html/rfc7946#section-3.2

A Feature object has a member with the name "geometry".  The value
of the geometry member SHALL be either a Geometry object as
defined above or . . . a JSON null value.

* Missed an instance geometry cannot be null

* Handle empty geojson features