当前位置:网站首页>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
边栏推荐
- Hash tag usage in redis cluster
- MySQL basic operation -dql
- 想问问,如何选择券商?在线开户是很安全么?
- What is digital existence? Digital transformation starts with digital existence
- Intern position selection and simplified career development planning in Internet companies
- Open3d mesh (surface) coloring
- Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
- mysql拆分字符串做条件查询
- 【 YOLOv3中Loss部分计算】
- [cloud native | kubernetes] actual battle of ingress case (13)
猜你喜欢

Why learn harmonyos and how to get started quickly?

【yolov5.yaml解析】

How to make your products as expensive as possible

Principle of redis cluster mode

ABAP table lookup program

Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)

Matlab boundarymask function (find the boundary of the divided area)

How to clear floating?

Embedded software architecture design - message interaction

查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
随机推荐
Swift - enables textview to be highly adaptive
yolov5目标检测神经网络——损失函数计算原理
byte2String、string2Byte
II. Data type
查看rancher中debug端口信息,并做IDEA Remote Jvm Debug
Understand kotlin from the perspective of an architect
MySQL basic operation -dql
报错ModuleNotFoundError: No module named ‘cv2.aruco‘
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases
JS for循环 循环次数异常
【yolov5.yaml解析】
Matlab boundarymask function (find the boundary of the divided area)
Principle and performance analysis of lepton lossless compression
Is investment and finance suitable for girls? What financial products can girls buy?
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
想问问,如何选择券商?在线开户是很安全么?
[pytorch pre training model modification, addition and deletion of specific layers]
Use and install RkNN toolkit Lite2 on itop-3568 development board NPU
MySQL data table operation DDL & data type
Which domestic cloud management platform manufacturer is good in 2022? Why?