-2
如何在米(13.70米,6米)到当前坐标(经纬度&长)上添加一个固定距离以获得下一个坐标以绘制新的直线150 -250个坐标点。有没有一个公式或方程来做到这一点? 请支持我。通过添加固定距离获取下一个GPS坐标
如何在米(13.70米,6米)到当前坐标(经纬度&长)上添加一个固定距离以获得下一个坐标以绘制新的直线150 -250个坐标点。有没有一个公式或方程来做到这一点? 请支持我。通过添加固定距离获取下一个GPS坐标
做到这一点的公式位于Lat/lon given radial and distance,但可能是最准确的公式,(最有可能更准确的比你的仪器就可以传送到现实世界情况),是Vincenty's Direct Problem
有一个你可以在线和离线工作的方式的数量,例如,Destination given distance & bearing from start point (direct solution),或spreadsheet(excel) calculators
......但那会让你开始。
以下是您有趣的事情。在Python3中,安装pyproj
模块。 (sudo pip3 install pyproj
)
from pyproj import Geod
geoid = Geod(ellps='WGS84')
def give_me_points(lon, lat, az, dist, number):
distance = dist
for point in range(1,number):
longitude, latitude, return_az = geoid.fwd(lon, lat, az, dist)
print('#', point,':','Lon:', longitude, 'Lat:',latitude)
point += 1
dist = distance * point
调用函数
2.295050
48.857895
(西负数和南部)像give_me_points(2.295050, 48.857895, 135, 22, 40)