Metadata-Version: 2.1
Name: utm-zone
Version: 1.0.1
Summary: Find the UTM zone for your GeoJSON
Home-page: https://github.com/perliedman/py-utm-zone
Author: Per Liedman
Author-email: per@liedman.net
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Operating System :: OS Independent
Requires-Python: >=3
Description-Content-Type: text/markdown

# 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](https://pypi.org/project/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](https://gis.stackexchange.com/a/190209/467).

See also [https://github.com/perliedman/utm-zone](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.


