driptorch.io.Projector#
- class driptorch.io.Projector(src_epsg: int, dst_epsg: int)#
Helper class to handle reprojections during I/O operations.
- Parameters
- src_epsgint
Source EPSG code
- dst_epsgint
Destination EPSG code
Methods
__init__
(src_epsg, dst_epsg)backward
(geometry)Project from destimation EPSG to source EPSG
estimate_utm_epsg
(lon, lat, **kwargs)Estimate the UTM EPSG code for a given point
forward
(geometry)Project from source EPSG to destination EPSG
to_wgs84
(geometry, src_epsg)Convenience method to project a shapely geometry or GeoJSON feature to WGS84.
wgs84_to_utm
(geometry)Convert geometry from WGS84 to UTM