问题描述
我有一组十进制格式的GPS坐标,我正在寻找一种在每个位置周围找到具有可变半径的圆的坐标。
将您的中心点作为开始点,您的半径作为距离,并从多个轴承从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坐标的优雅方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!