Geodesics on an arbitrary ellipsoid of revolution
Charles F. F. Karney
TL;DR
This work extends robust geodesic calculations to ellipsoids of revolution with arbitrary eccentricity by recasting direct/inverse problems in Legendre and Cayley elliptic integrals and by computing geodesic-polygon areas via a discrete sine transform. It introduces a stable longitude formulation, a 1D root-finding strategy for the inverse problem, and a DST-based approach for the area integral, achieving near double-precision accuracy while remaining practical for terrestrial ellipsoids. Implemented in GeographicLib with open-source availability, the methods are validated across oblate and prolate cases and tested on large polygons, including the Poland boundary, with careful attention to numerical precision and performance. The two-part methodology broadens geodesy’s applicability to highly eccentric bodies and provides a robust, efficient toolkit for precise geodesic and polygon-area computations, while clarifying when legacy Taylor-series methods remain preferable for small flattening scenarios.
Abstract
The algorithms given in Karney, J. Geodesy 87, 43-55 (2013), to compute geodesics on terrestrial ellipsoids are extended to apply to ellipsoids of revolution with arbitrary eccentricity. For the direct and inverse geodesic problems, this entails implementing the formulation in terms of elliptic integrals given by Legendre and Cayley. The integral for the area of geodesic polygons is computed in terms of the discrete sine transform of the integrand. In all cases, accuracy close to full machine precision is achieved. An open-source implementation of these algorithms is available.
