jon.recoil.org

Module Geotessera.UtmSource

UTM projection utilities — WGS84 ellipsoid, Northern hemisphere.

Sourceval zone_of_lon : float -> int

UTM zone number from longitude.

Sourceval central_meridian : int -> float

Central meridian (degrees) of a UTM zone.

Sourceval wgs84_to_utm : zone:int -> float -> float -> float * float

wgs84_to_utm ~zone lon lat converts WGS84 (lon, lat) in degrees to UTM (easting, northing) in metres. Northern hemisphere only.

Sourceval utm_to_wgs84 : zone:int -> float -> float -> float * float

utm_to_wgs84 ~zone easting northing converts UTM (easting, northing) in metres to WGS84 (lon, lat) in degrees. Northern hemisphere only.