driptorch.io.write_geojson#

driptorch.io.write_geojson(geometries: list[shapely.geometry.base.BaseGeometry], src_epsg: int, dst_epsg: int = 4326, properties={}, style={}, elapsed_time=None) dict#

Write a list of shapely geometries to GeoJSON

Parameters
geometrieslist[BaseGeometry]

List of shapely geometries

src_epsgint

EPSG code of the CRS that the spatial data are currently projected in.

dst_epsgint

EPSG code of the CRS that the spatial data will be projected to.

propertiesdict, optional

Properties for each feature. Defaults to {}.

styledict, optional

Rendering style applied to all features. Defaults to {}.

elapsed_timefloat, optional

Time elapsed during the firing operation. Defaults to None.

Returns
dict

GeoJSON feature collection