Skip to content
/ utm Public

Package for converting to and from the Universal Transverse Mercator coordinate system

License

Notifications You must be signed in to change notification settings

icholy/utm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WGS84 UTM Conversion

GoDoc

Package for converting to and from the Universal Transverse Mercator coordinate system

Examples:

Lookup a zone by lat/lon, srid code, or text

zone := utm.LatLonZone(50.77535, 6.008)
zone, _ := utm.LookupSRID(32601)
zone, _ := utm.ParseZone("32U")

Convert from lat/lon to UTM

easting, northing := zone.ToUTM(50.77535, 6.008)

Convert from UTM to lat/lon

latitude, longitude := zone.ToLatLon(294408.917, 5628897.997)

Credit:

This was mostly copied from: https://github.com/Turbo87/utm

About

Package for converting to and from the Universal Transverse Mercator coordinate system

Topics

Resources

License

Stars

Watchers

Forks

Languages