how to draw geodesic on the ellipsoid?

426 Views Asked by At

I try to simulate geodesic on the ellipsoid recently. I have two points on the ellipsoid. After solving the inverse problem, I can get the distance and two azimuths of two points. As the figure https://i.stack.imgur.com/dJnUj.jpg. (I can obtain S12 and alpha 1 2) But how can I draw the geodesic on the ellipsoid? What I can get from the inverse problem doesn't make sense to me to draw this geodesic path. Can somebody help me with this question? Thanks!!

2

There are 2 best solutions below

0
On

Once you have s12 and α1, you can solve a series of direct problems with a fixed φ1, λ1 and α1 and a varying s13 in the range 0 ≤ s13s12 to find a sequence of waypoints 3. Join up these points and you have your geodesic.

The GeodSolve utility from GeographicLib will do the job on the command line (scroll down to the examples section). Alternatively use the GeodesicLine class in GeographicLib (see the example C++ code provided). Equivalent functionality is also provided in C by the proj.4 library, version 4.9.1.

0
On

If it is a surface of revolution ( two axes of ellipsoid same) by Clairaut's Law it is easy to integrate numerically. The invariant minimum radii are: $r_1 sin \alpha_1 ,r_2 sin \alpha_2 $. If there is no axis-symmetry it is doable, but very cumbersome.