Skip to content

Convert Lat/Lon to UTM and vise versa

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.hpp
Notifications You must be signed in to change notification settings

pducks32/Geotum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geotum

Version License Platform

Geotum is for converting to and from latitude/longitude pairs and UTM points.

Usage

// Converting to UTM (near Santa Cruz)
let latitude = 37.0837
let longitude = -121.9981
let latLonCoordinate = LatLonCoordinate(latiudinalDegrees: latitude, longitudinalDegrees: longitude)
UTMConverter(datum: .wgs84).utmCoordinatesFrom(coordinates: latLonCoordinate)

// Converting to Lat Lon
let utmCoordinate = UTMPoint(easting: 589048.6, northing: 4104627, zone: 10, hemisphere: .northern)
UTMConverter(datum: .wgs84).coordinateFrom(utm: utmCoordinate)

Accuracy

As detailed below this library suffers from a common UTM conversion problem, namely the poles (which are not supported by UTM) and the Svalbard/Norway problem.

I am aware of these problems and plan to fix them shortly.

Comparisons

Another library GeodeticUTMConverter works but is no longer maintained. As I (@pducks32) have dealt with geodesy both academically and professionally I thought I would start my own library to handle the conversions.

Currently this library just copies GeodeticUTMConverter and supports macOS but in the future will be extended to fix significant problems in that source (such as the Svalbard problem).

Installation

Geotum is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Geotum"

Author

Patrick Metcalfe, [email protected]

License

Hamilton is available under the MIT license. See the LICENSE file for more info.

About

Convert Lat/Lon to UTM and vise versa

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.hpp

Stars

Watchers

Forks

Packages

No packages published