wradlib.georef.vector.transform_geometry#
- wradlib.georef.vector.transform_geometry(geom, trg_crs, **kwargs)[source]#
Perform geotransformation to given destination SpatialReferenceSystem
It transforms coordinates to a given destination osr spatial reference if a geotransform is neccessary.
- Parameters:
geom (
osgeo.ogr.Geometry)trg_crs (
pyproj:pyproj.CRS,cartopy.crs.CRS,osgeo.osr.SpatialReference,strorint) – Any of the given projection objects, or anything which can be consumed by pyproj.CRS.from_user_input Destination Projection
- Keyword Arguments:
src_crs (
pyproj:pyproj.CRS,cartopy.crs.CRS,osgeo.osr.SpatialReference,strorint) – Any of the given projection objects, or anything which can be consumed by pyproj.CRS.from_user_input Source Projection- Returns:
geom (
osgeo.ogr.Geometry) – Transformed Geometry