salem.transform_geometry

salem.transform_geometry(geom, crs=Proj('+proj=longlat +datum=WGS84 +no_defs', preserve_units=True), to_crs=Proj('+proj=longlat +datum=WGS84 +no_defs', preserve_units=True))[source]

Reprojects a shapely geometry.

Parameters
geomshapely geometry

the geometry to transform

crscrs

the geometry’s crs

to_crscrs

the crs into which the geometry must be transformed

Returns
A reprojected geometry