Skip to main content

Find the UTM zone for your GeoJSON

Project description

utm-zone

Find the UTM zone for your GeoJSON.

Provided a GeoJSON object (with coordinates using WGS84), calculate the Proj.4 definition or EPSG code for a suitable UTM zone for this geometry. This will only work if the geometry has limited geographic size, so that it can fit into a single UTM zone.

Note that this module does not do any reprojection of coordinates, you might want to look at pyproj for that.

For a rough overview of how the UTM zone is calculated, have a look at https://gis.stackexchange.com/a/190209/467.

See also https://github.com/perliedman/utm-zone for a JavaScript version of this module.

API

epsg(geojson)

Returns the EPSG code for the UTM zone of the provided GeoJSON object.

proj(geojson)

Returns the Proj.4 string for the UTM zone of the provided GeoJSON object.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for utm-zone, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size utm_zone-1.0.1-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size utm_zone-1.0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page