如何找到经纬度 [英] How to find latitude and longitude
问题描述
我有一个点的经度和纬度,我必须从距已知点的相对距离中找出另一个点的经度和纬度,例如点A的某个位置具有经度和纬度.从A点向南移动1000m,向西移动500m后的经度.是否有直接方程式可找到该经度?预先感谢
I have latitude and longitude of a point.I have to find out the latitude and longitude of another point from a relative distance from the known point.For example point A has some location with latitude and longitude.What is the latitude and longitude after moving 1000m south and 500m west from point A.Is there any direct equation to find this? Thanks in advance
推荐答案
代替查找方程式,您可以按如下方式进行计算.令R
为地球的半径.假设a
为当前纬度,并且b
为当前经度.然后,如果您向东移动δx
米(西向为负),然后向南移动δy
米,则可以按以下步骤计算新的经度.
Instead of looking up an equation you can calculate as follows. Let R
be the radius of the Earth. Let a
be the current latitude and b
be the current longitude. Then if you move δx
metres east (negative for west) then δy
metres south, calculating the new longitude can be done as follows.
在当前纬度下将水平面与地球相交会得到一个半径为R*cos(a)
的圆.因此,将δx
转换为经度变化,您会得到类似
Intersecting a horizontal plane with the Earth at the current latitude will give you a circle of radius R*cos(a)
. So to convert δx
to the change in longitude, you get something like
δlong = δx * 2π / (2π * R * cos(a)) = δx / (R * cos (a))
纬度更改更容易,因为它不依赖于当前位置.您总是绕着两个极点绕着一个大圆圈运动.然后δlat = δy / R
. (当然,您有时需要通过2 π
进行修改).
The change in latitude is easier, since it doesn't depend on the current position. You're always moving around a great circle through the two poles. Then δlat = δy / R
. (Of course you need to mod out by 2 π
at some point).
这篇关于如何找到经纬度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!