driptorch.io.Projector.to_wgs84#
- classmethod Projector.to_wgs84(geometry: Union[shapely.geometry.base.BaseGeometry, dict], src_epsg: int) Union[shapely.geometry.base.BaseGeometry, dict] #
Convenience method to project a shapely geometry or GeoJSON feature to WGS84.
- Parameters
- geometryUnion[BaseGeometry, dict]
Either a shapely geometry or a GeoJSON feature (not a feature collection)
- src_epsgint
Source EPSG code that the spatial data are currently project in
- Returns
- BaseGeometry | dict
A shapely geometry or GeoJSON feature projected in 4326