当前位置:网站首页>GPS数据格式转换[通俗易懂]
GPS数据格式转换[通俗易懂]
2022-07-05 12:13:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
经纬度格式分为三种:度、 度–分、 度–分–秒
1.)ddd.ddddd °【度.度 格式】的十进制小数部分(5位)
2.)ddd°mm.mmm’ 【度分.分 格式】的十进制小数部分(3位) NMEA数据格式为$GPGGA时,得到gps数据为(度分.分)格式
3.) ddd°mm’ss’’ 【度.分.秒 格式】
Google 使用的是第三种格式 度。分’秒’’
度分转换:
将度分单位数据转换为度单位数据
度=度+分/60
例如: 经度 = 116°20.12’ 纬度 = 39°12.34’
经度 = 116 + 20.12 / 60 = 116.33533°
纬度 = 39 + 12.34 / 60 = 39.20567°
度分秒转换:
将度分秒单位数据转换为度单位数据
度=度+分/60 +秒/60/60
例如: 经度 = 116°20’43” 纬度 = 39°12’37”
经度 = 116 + 20 / 60 + 43/60/60 = 116.34528°
纬度 = 39 + 12 / 60 + 37/60/60 = 39.21028°
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/149207.html原文链接:https://javaforall.cn
边栏推荐
- Embedded software architecture design - message interaction
- Proof of the thinking of Hanoi Tower problem
- 【load dataset】
- 语义分割实验:Unet网络/MSRC2数据集
- Swift - enables textview to be highly adaptive
- 网络五连鞭
- 调查显示传统数据安全工具在60%情况下无法抵御勒索软件攻击
- Time tools
- Codeworks 5 questions per day (1700 average) - day 5
- Linux Installation and deployment lamp (apache+mysql+php)
猜你喜欢
[calculation of loss in yolov3]
【SingleShotMultiBoxDetector(SSD,单步多框目标检测)】
[cloud native | kubernetes] actual battle of ingress case (13)
Intern position selection and simplified career development planning in Internet companies
Linux安装部署LAMP(Apache+MySQL+PHP)
【pytorch 修改预训练模型:实测加载预训练模型与模型随机初始化差别不大】
Pytorch softmax regression
Mmclassification training custom data
Matlab label2idx function (convert the label matrix into a cell array with linear index)
[upsampling method opencv interpolation]
随机推荐
1个插件搞定网页中的广告
Hash tag usage in redis cluster
Why learn harmonyos and how to get started quickly?
15 methods in "understand series after reading" teach you to play with strings
Tabbar configuration at the bottom of wechat applet
Open3d European clustering
【load dataset】
你做自动化测试为什么总是失败?
Understanding the architecture type of mobile CPU
Embedded software architecture design - message interaction
One article tells the latest and complete learning materials of flutter
Thoughts and suggestions on the construction of intelligent management and control system platform for safe production in petrochemical enterprises
HiEngine:可媲美本地的云原生内存数据库引擎
Open3d mesh (surface) coloring
Application of a class of identities (vandermond convolution and hypergeometric functions)
ACID事务理论
Codeworks 5 questions per day (1700 average) - day 5
Select drop-down box realizes three-level linkage of provinces and cities in China
pytorch-softmax回归
Video networkstate property