iOS:如何将MKMapPoint或CLLocationCoordinate2D转换为UTM? [英] iOS: How to convert MKMapPoint or CLLocationCoordinate2D to 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屋!