Coder Social home page Coder Social logo

koolistov-forks / geodeticutmconverter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from palmerc/geodeticutmconverter

0.0 1.0 0.0 327 KB

An objective-C converter of UTM to/from latitude and longitude

License: BSD 3-Clause "New" or "Revised" License

Ruby 4.52% Objective-C 95.48%

geodeticutmconverter's Introduction

Geodetic UTM Coordinate Converter

UTM or Universal Transverse Mercator is an older system for specifying a global position on the planet similar to the Latitude and Longitude except the values are called Northing and Easting and requires a Zone.

In Norway, this UTM system is a standard way for governmental organizations to define location. For example, Ruter, the public transit agency, uses it in their public transit APIs. This library will tranlate between a UTM coordinate and the Lat/Long coordinates that are more commonly used on modern platforms like iOS.

Sample Code

UTMCoordinates coordinates;
coordinates.gridZone = 32;
coordinates.northing = 6643010;
coordinates.easting = 598430;
coordinates.hemisphere = kUTMHemisphereNorthern;
    
CLLocationCoordinate2D groenland = [GeodeticUTMConverter UTMCoordinatesToLatitudeAndLongitude:coordinates];

If you want to supply your own Datum, then

GeodeticUTMConverter *converter = [[GeodeticUTMConverter alloc] initWithDatum:UTMDatumMake(6378137, 6356752.3142)];

geodeticutmconverter's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.