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.

Source Distribution

utm_zone-1.0.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file utm_zone-1.0.2.tar.gz.

File metadata

  • Download URL: utm_zone-1.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for utm_zone-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f945252c4ff200fa675fb41e83492dcb2b7d863e38c4d5ed2a4e252a23815ee0
MD5 d587c31b65d4e68458b862427f46aa11
BLAKE2b-256 7319b82ea39f939e3180665c6ab572566a1233178f0f289f4c109becc1278bb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page