driptorch.io.read_geojson_polygon#

driptorch.io.read_geojson_polygon(geojson: dict) folium.vector_layers.Polygon#

Parse a GeoJSON to a shapely Polygon

Parameters
geojsondict

GeoJSON feature projected in 4326

Returns
Polygon

Shapely polygon geometry

Raises
GeojsonError

Raise error if we can’t figure out the formatting