开发者

Formula to calculate different coordinates for flight routes in KML

I need to create flight routes in Google Earth. Example from point A to point B, How do i get the equivalent middle point for both and along point A to B, there are also many different coordinates joining so that the line would be a开发者_运维问答 curve.


Generally you should use the great-circle distance to compute the distance of two point on the surface of a sphere, like in this case the Earth. Even WolframAlpha uses this to compute direct travel times.

This would also define the midpoint for you uniquely.


Use e.g., Perl's Math::Trig module. It comes complete with the great circle functions you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜