Skip to main content

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.

Release files for utm-zone 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utm-zone 1.0.2
File Size Uploaded
utm_zone-1.0.2.tar.gz 2.8 kB Details

Release files / utm_zone-1.0.2.tar.gz

Download URL utm_zone-1.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f945252c4ff200fa675fb41e83492dcb2b7d863e38c4d5ed2a4e252a23815ee0
BLAKE2b-256 checksum
How to use checksums
7319b82ea39f939e3180665c6ab572566a1233178f0f289f4c109becc1278bb5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page