Formula/algorithm to offset GPS coordinations

為{幸葍}努か 提交于 2019-12-04 06:24:18

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/27807471/formula-algorithm-to-offset-gps-coordinations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!