I have a polygon that consists of a few (lon, lat)
points, each pair of consequent points is considered to be connected by orthodromes. I want to interpolate the polygon with some extra points between each source point pair (add some more waypoints lying on the orthodrome).
I know, that geopy
, for example, has the possibility to calculate the distance on great circle, but I need some more: to find the waypoints on great circle.
I need something like that:
src_lon = 10
src_lat = 40
dst_lon = 20
dst_lat = 60
n_points = 100
lons, lats = interpolate_orthodrome(src_lon, src_lat, dst_lon, dst_lat, n_points)