有谁知道ObjectiveC MapKit中MKMapPointForCoordinate函数的算法
Does anyone know algorithm of MKMapPointForCoordinate function in ObjectiveC MapKit
MapKit 有函数 MKMapPointForCoordinate,它接受 lat lng 作为参数和 return 点 x,y。
经纬度 = 59.90738808515509
lng = 10.724523067474365
如果我们通过 lat, lng 然后函数 return
x = 142214284, y = 78089986
我检查了 lag lng wot UTM,但它给出了不同的结果
http://www.latlong.net/lat-long-utm.html
MKMapPointForCoordinate
没有 return UTM 坐标。
坐标是指地球上的一个位置(伪球体),但有时需要参照二维地图进行计算(更简单),然后再转换为坐标。这是转换的目标。
因此,由 MKMapPointForCoordinate
编辑的 MKMapPoint
结构 return 是坐标的二维表示,但它不符合任何已知标准。
在 MKMapPoint
文档中,您可以阅读:
The actual units of a map point are tied to the underlying units used
to draw the contents of an MKMapView, but you should never need to
worry about these units directly. You use map points primarily to
simplify computations that would be complex to do using coordinate
values on a curved surface.
编辑
我在之前的项目中使用坐标-UTM 转换this Open Source Code
MapKit 有函数 MKMapPointForCoordinate,它接受 lat lng 作为参数和 return 点 x,y。
经纬度 = 59.90738808515509 lng = 10.724523067474365
如果我们通过 lat, lng 然后函数 return
x = 142214284, y = 78089986
我检查了 lag lng wot UTM,但它给出了不同的结果 http://www.latlong.net/lat-long-utm.html
MKMapPointForCoordinate
没有 return UTM 坐标。
坐标是指地球上的一个位置(伪球体),但有时需要参照二维地图进行计算(更简单),然后再转换为坐标。这是转换的目标。
因此,由 MKMapPointForCoordinate
编辑的 MKMapPoint
结构 return 是坐标的二维表示,但它不符合任何已知标准。
在 MKMapPoint
文档中,您可以阅读:
The actual units of a map point are tied to the underlying units used to draw the contents of an MKMapView, but you should never need to worry about these units directly. You use map points primarily to simplify computations that would be complex to do using coordinate values on a curved surface.
编辑
我在之前的项目中使用坐标-UTM 转换this Open Source Code