to_utm_crs

Contents

to_utm_crs#

to_utm_crs(lon: float, lat: float) CRS[source]#

Deprecated since version 1.29.1: Use estimate_utm_crs instead, which directly returs a CRS instead of a string.

Find the EPSG code of the UTM CRS from a lon/lat in WGS84.

Parameters:
  • lon (float) – Longitude (WGS84, epsg:4326)

  • lat (float) – Latitude (WGS84, epsg:4326)

Returns:

UTM CRS

Return type:

CRS

Example

>>> to_utm_crs(lon=7.8, lat=48.6)  # Strasbourg
<Derived Projected CRS: EPSG:32632>
Name: WGS 84 / UTM zone 32N
Axis Info [cartesian]:
- E[east]: Easting (metre)
- N[north]: Northing (metre)
Area of Use:
- bounds: (6.0, 0.0, 12.0, 84.0)
Coordinate Operation:
- name: UTM zone 32N
- method: Transverse Mercator
Datum: World Geodetic System 1984 ensemble
- Ellipsoid: WGS 84
- Prime Meridian: Greenwich