当前位置:网站首页>GPS data format conversion [easy to understand]
GPS data format conversion [easy to understand]
2022-07-05 12:13:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
There are three types of longitude and latitude formats : degree 、 degree – branch 、 degree – branch – second
1.)ddd.ddddd °【 degree . degree Format 】 Decimal fraction of (5 position )
2.)ddd°mm.mmm’ 【 Degrees . branch Format 】 Decimal fraction of (3 position ) NMEA data The format is $GPGGA when , obtain gps The data is ( Degrees . branch ) Format
3.) ddd°mm’ss’’ 【 degree . branch . second Format 】
Google The third format is used degree . branch ’ second ’’
Conversion of degree to minute :
Convert degree unit data to degree unit data
degree = degree + branch /60
for example : longitude = 116°20.12’ latitude = 39°12.34’
longitude = 116 + 20.12 / 60 = 116.33533°
latitude = 39 + 12.34 / 60 = 39.20567°
Degree minute second conversion :
Convert degree, minute and second unit data to degree unit data
degree = degree + branch /60 + second /60/60
for example : longitude = 116°20’43” latitude = 39°12’37”
longitude = 116 + 20 / 60 + 43/60/60 = 116.34528°
latitude = 39 + 12 / 60 + 37/60/60 = 39.21028°
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149207.html Link to the original text :https://javaforall.cn
边栏推荐
- 2022年国内云管平台厂商哪家好?为什么?
- Pytorch MLP
- 自动化测试生命周期
- MVVM framework part I lifecycle
- 跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
- 一类恒等式的应用(范德蒙德卷积与超几何函数)
- Read and understand the rendering mechanism and principle of flutter's three trees
- Matlab boundarymask function (find the boundary of the divided area)
- [cloud native | kubernetes] actual battle of ingress case (13)
- Video networkstate property
猜你喜欢

Matlab struct function (structure array)

Wireless WiFi learning 8-channel transmitting remote control module

How to make your products as expensive as possible
The survey shows that traditional data security tools cannot resist blackmail software attacks in 60% of cases

mysql拆分字符串做条件查询

What is digital existence? Digital transformation starts with digital existence

The evolution of mobile cross platform technology
Two minutes will take you to quickly master the project structure, resources, dependencies and localization of flutter

yolov5目标检测神经网络——损失函数计算原理

多表操作-自关联查询
随机推荐
Linux Installation and deployment lamp (apache+mysql+php)
[singleshotmultiboxdetector (SSD, single step multi frame target detection)]
How to clear floating?
Get all stock data of big a
Swift - enables textview to be highly adaptive
Matlab imoverlay function (burn binary mask into two-dimensional image)
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
mysql拆分字符串做条件查询
How can beginners learn flutter efficiently?
Redis cluster (master-slave) brain crack and solution
July Huaqing learning-1
Seven polymorphisms
Open3d European clustering
Sentinel sentinel mechanism of master automatic election in redis master-slave
[pytorch modifies the pre training model: there is little difference between the measured loading pre training model and the random initialization of the model]
Yolov5 target detection neural network -- calculation principle of loss function
Four operations and derivative operations of MATLAB polynomials
Simply solve the problem that the node in the redis cluster cannot read data (error) moved
【ijkplayer】when i compile file “compile-ffmpeg.sh“ ,it show error “No such file or directory“.
语义分割实验:Unet网络/MSRC2数据集