DDM到DD地理坐标转换算法

时间:2015-03-06 23:40:45

标签: c# math coordinates converter coordinate

我使用http://www.pgc.umn.edu/tools/conversion转换

52 37.9418 N. 01.18.8020 E. (DDM我想?)

纬度52.632363 经度1.313367

这似乎非常准确,我已经玩过计算来自己转换这些值,但它们似乎从来都不准确。

http://en.wikipedia.org/wiki/Geographic_coordinate_conversion

这次转换背后的数学是什么?

1 个答案:

答案 0 :(得分:2)

//Parsing the DDM format is left as an excersize to the reader,
//  as is converting this code snippet into a usable function.
double inputDegrees = 52;
double inputMinutes = 37.9418;
double latitude = inputDegrees + (inputMinutes/60);  // 52.632363