python:在某个GPS位置找到一个圆圈的GPS坐标的优雅方式 [英] python: elegant way of finding the GPS coodinates of a circle around a certain GPS location
问题描述
这里是一个例子<一个我所需要的坐标 47,11
之间的 1km
圆的圆圈。
我需要的是用于查找圆坐标的算法,所以我可以使用多边形在我的kml文件中使用它。理想的是python
任何想法?
使用Destination point从起点给出距离和方位这里:
http://www.movable-type.co.uk/scripts/latlong.html
将您的中心点作为开始点,您的半径作为距离,并从多个轴承从0度到360度循环。这将给你一个圈子的点,并将在极点工作,因为它使用伟大的圈子无处不在。
I have a set of GPS coordinates in decimal notation, and I'm looking for a way to find the coordinates in a circle with variable radius around each location.
Here is an example of what I need. It is a circle with 1km
radius around the coordinate 47,11
.
What I need is the algorithm for finding the coordinates of the circle, so I can use it in my kml file using a polygon. Ideally for python.
Any ideas?
Use the formula for "Destination point given distance and bearing from start point" here:
http://www.movable-type.co.uk/scripts/latlong.html
with your centre point as start point, your radius as distance, and loop over a number of bearings from 0 degrees to 360 degrees. That will give you the points on a circle, and will work at the poles because it uses great circles everywhere.
这篇关于python:在某个GPS位置找到一个圆圈的GPS坐标的优雅方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!