更新时间:2022-12-30 13:53:26
大概的转换是:
对于地球的极地平坦化而言,这并不完全正确-为此,您可能需要使用WGS84参考椭球(用于GPS的模型)更复杂的公式。但是对于您而言,该错误可能可以忽略不计。
This doesn't fully correct for the Earth's polar flattening - for that you'd probably want a more complicated formula using the WGS84 reference ellipsoid (the model used for GPS). But the error is probably negligible for your purposes.
来源: http://zh.wikipedia.org/wiki/纬度
注意:请注意,表示的是经纬度坐标以度为单位,而大多数(所有)语言中的 cos
函数通常接受弧度,因此度到弧度的转换是必需的。
Caution: Be aware that latlong coordinates are expressed in degrees, while the cos
function in most (all?) languages typically accepts radians, therefore a degree to radians conversion is needed.