当前位置:网站首页>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
边栏推荐
- 【load dataset】
- Pytorch linear regression
- Matlab boundarymask function (find the boundary of the divided area)
- Matlab imoverlay function (burn binary mask into two-dimensional image)
- pytorch-线性回归
- Redirection of redis cluster
- Video networkState 属性
- Matlab superpixels function (2D super pixel over segmentation of image)
- Hash tag usage in redis cluster
- Basic operations of MySQL data table, addition, deletion and modification & DML
猜你喜欢
[calculation of loss in yolov3]
[mainstream nivida graphics card deep learning / reinforcement learning /ai computing power summary]
Sentinel sentinel mechanism of master automatic election in redis master-slave
互联网公司实习岗位选择与简易版职业发展规划
Splunk configuration 163 mailbox alarm
codeforces每日5题(均1700)-第五天
【Win11 多用户同时登录远程桌面配置方法】
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
Linux安装部署LAMP(Apache+MySQL+PHP)
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
随机推荐
[upsampling method opencv interpolation]
Application of a class of identities (vandermond convolution and hypergeometric functions)
[yolov3 loss function]
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
How to make your products as expensive as possible
Semantic segmentation experiment: UNET network /msrc2 dataset
Multi table operation - Auto Association query
Principle of redis cluster mode
Swift - add navigation bar
Tabbar configuration at the bottom of wechat applet
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
A guide to threaded and asynchronous UI development in the "quick start fluent Development Series tutorials"
Riddle 1
Proof of the thinking of Hanoi Tower problem
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
July Huaqing learning-1
Codeforces Round #804 (Div. 2)
Linux Installation and deployment lamp (apache+mysql+php)
vscode快捷键
Vscode shortcut key