DDM到DD地理坐标转换算法
DDM to DD Geographic Coordinate Conversion Algorithm
我已经用http://www.pgc.umn.edu/tools/conversion转换
52 37.9418 牛
01.18.8020 英语
(我认为是 DDM?)
至
纬度 52.632363
经度 1.313367
这似乎非常准确,我自己也尝试过计算来转换这些值,但它们似乎从来都不准确。
http://en.wikipedia.org/wiki/Geographic_coordinate_conversion
此转换背后的数学原理是什么?
//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
我已经用http://www.pgc.umn.edu/tools/conversion转换
52 37.9418 牛 01.18.8020 英语 (我认为是 DDM?)
至
纬度 52.632363 经度 1.313367
这似乎非常准确,我自己也尝试过计算来转换这些值,但它们似乎从来都不准确。
http://en.wikipedia.org/wiki/Geographic_coordinate_conversion
此转换背后的数学原理是什么?
//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