[GIS] Python WKT or Proj4 lookup package

projpythonsoftware-recommendationsutmwell-known-text

I am looking for a Python package that would allow me to input a UTM zone code and output different geo_referencing strings (for example, WKT or Proj4). Are there any lightweight, widely used packages out there that perform this function?

Best Answer

GDAL contains the most complete open source implementation and I'm not aware of any port to Python.

Rasterio does the same kind of thing as GDAL's Python bindings and calls the same C library functions.

>>> from rasterio.crs import CRS
>>> CRS.from_epsg(4326).wkt
'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]

Rasterio is not lightweight by any measure.

Related Question