Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: How to convert MKMapPoint or CLLocationCoordinate2D to UTM?

From what I have read this takes some complicated Math that I am not good at. So, I am asking here.

Does anyone have experience converting a MKMapPoint or CLLocationCoordinate2D to a UTM value? I found this resource (http://www.uwgb.edu/dutchs/usefuldata/UTMFormulas.HTM) but the math is overwhelming.

like image 747
Nic Hubbard Avatar asked Jan 22 '23 01:01

Nic Hubbard


1 Answers

I recently wrote a class for this and posted a sample project on GitHub

UTMConverter example for iOS

The part you want is a file called UTMConverter.m. It has methods for converting from lat/long to UTM and vice-versa.

like image 94
Cameron Lowell Palmer Avatar answered Jan 23 '23 15:01

Cameron Lowell Palmer