公式/算法来抵消GPS协调 [英] Formula/algorithm to offset GPS coordinations
问题描述
我提供的GPS坐标是纬度,经度,并希望通过距离和角度来抵消它们。例如:如果我偏移了 45.12345
, 7.34567
由22公里沿轴承104度?
谢谢
对于大多数应用程序,这两个公式中的一个足够了:
Lat / lon给定的径向距离 第二个较慢,但在特殊情况下的问题较少(请参见该页面上的文档)。
阅读该页面的介绍,并确保在得到结果之前经度/纬度在转换成弧度之前和转回到度数。
确保您的系统使用atan2(y,x)(通常是这种情况),而不是atan2(x,y),这是Excell的情况。
I have GPS coordinates provided as degrees latitude, longitude and would like to offset them by a distance and an angle.
E.g.: What are the new coordinates if I offset 45.12345
, 7.34567
by 22km along bearing 104 degrees ?
Thanks
For most applications one of these two formulas are sufficient:
"Lat/lon given radial and distance"
The second one is slower, but makes less problems in special situations (see docu on that page).
Read the introduction on that page, and make sure that lat/lon are converted to radians before and back to degrees after having the result.
Make sure that your system uses atan2(y,x) (which is usually the case) and not atan2(x,y) which is the case in Excell.
这篇关于公式/算法来抵消GPS协调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!