格式错误的纬度经度DDDMM.MMMM 2832.3396N [英] Latitude Longitude in wrong format DDDMM.MMMM 2832.3396N
问题描述
我有一个gps模块,以奇怪的格式为我提供经度纬度.
I have a gps module that gives me latitude in longitude in a weird format.
DDDMM.MMMM
根据用户手册的规定,度数* 100 +分钟.
As written on user manual, Degrees*100 + Minutes.
据我所知,这是分钟分秒,并且秒在0-59之间,高于此值将增加分钟.但这给分钟以小数位.这是否意味着1/1000分钟?
As far as I know, It is degrees minutes seconds, and seconds is between 0-59, above than this will increment the minute. But this is giving minutes in decimal places. Does this means 1/1000th of a minute?
eg. 07717.3644 E
077 --> degrees
17 --> minutes
3644 --> ?
E --> Direction
我还将如何将其转换为十进制,我正在使用公式
Also how will I convert it to decimal, I am using the formula
decimal = degrees + minutes/60 + seconds/3600.
推荐答案
要将其转换为十进制格式,我们首先保留DD部分,然后将MM.MMM除以60,以固定十进制格式的MMM部分.
To convert this to the decimal format, we start by keeping the DD portion and simply divide the MM.MMM by 60 to firm the MMM portion of the decimal format.
43. (48.225/60), -79.(59.074/60)
43.(0.80375), -79.(0.98456)
43.80375, -79.98456
以您的情况
eg. 07717.3644 E is the DDDMM.MMMM format
077 --> degrees
17 --> minutes
.3644 --> minutes equals to sec/60
decimal = degrees + minutes/60
decimal = 77 + (17.3644 / 60)
decimal = 77.28941
这篇关于格式错误的纬度经度DDDMM.MMMM 2832.3396N的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!