pyinterp.core.geodetic.Polygon.from_geojson#

static Polygon.from_geojson(array: list) pyinterp.core.geodetic.Polygon#

Creates a polygon from a GeoJSON coordinates array.

Parameters

array – The GeoJSON coordinates array.

Returns

The polygon defined by the GeoJSON coordinate array.