iOS:如何将MKMapPoint或CLLocationCoordinate2D转换为UTM? [英] iOS: How to convert MKMapPoint or CLLocationCoordinate2D to UTM?

查看:288
本文介绍了iOS:如何将MKMapPoint或CLLocationCoordinate2D转换为UTM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我读过的内容来看,这需要一些我不擅长的复杂数学。所以,我在这里问。

有人有将MKMapPoint或CLLocationCoordinate2D转换为UTM值的经验吗?我发现这个资源( http://www.uwgb.edu/dutchs/usefuldata/UTMFormulas。 HTM ),但数学是压倒性的。

解决方案

您可以使用一个lib来做到这一点,或分析代码一个库的理解算法,并自己动手。



这是一个可以完成这项工作的c ++库: http://geographiclib.sourceforge.net/html/

http://geographiclib.sourceforge.net/html/classGeographicLib_1_1UTMUPS.html



我找到了这个网站(http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html)。如果您查看源代码,则整个转换都是使用JavaScript完成的,您可以查看它并尝试转换为Obj-c。


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.

解决方案

You could use one lib to do that, or analyze the code of one lib to understand the algorithm and do it yourself.

This is a c++ lib that does the job: http://geographiclib.sourceforge.net/html/

http://geographiclib.sourceforge.net/html/classGeographicLib_1_1UTMUPS.html

I found this website (http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html). If you look at the source code, the whole conversion is done using JavaScript, you can have a look at it and try to convert to Obj-c.

这篇关于iOS:如何将MKMapPoint或CLLocationCoordinate2D转换为UTM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆