HOME

TheInfoList



OR:

Vincenty's formulae are two related
iterative method In computational mathematics, an iterative method is a mathematical procedure that uses an initial value to generate a sequence of improving approximate solutions for a class of problems, in which the ''n''-th approximation is derived from the pre ...
s used in geodesy to calculate the distance between two points on the surface of a spheroid, developed by Thaddeus Vincenty (1975a). They are based on the assumption that the
figure of the Earth Figure of the Earth is a term of art in geodesy that refers to the size and shape used to model Earth. The size and shape it refers to depend on context, including the precision needed for the model. A sphere is a well-known historical approxima ...
is an oblate spheroid, and hence are more accurate than methods that assume a spherical Earth, such as great-circle distance. The first (direct) method computes the location of a point that is a given distance and
azimuth An azimuth (; from ar, اَلسُّمُوت, as-sumūt, the directions) is an angular measurement in a spherical coordinate system. More specifically, it is the horizontal angle from a cardinal direction, most commonly north. Mathematicall ...
(direction) from another point. The second (inverse) method computes the
geographical distance Geographical distance or geodetic distance is the distance measured along the surface of the earth. The formulae in this article calculate distances between points which are defined by geographical coordinates in terms of latitude and longitude. ...
and
azimuth An azimuth (; from ar, اَلسُّمُوت, as-sumūt, the directions) is an angular measurement in a spherical coordinate system. More specifically, it is the horizontal angle from a cardinal direction, most commonly north. Mathematicall ...
between two given points. They have been widely used in geodesy because they are accurate to within 0.5 mm (0.020in) on the
Earth ellipsoid An Earth ellipsoid or Earth spheroid is a mathematical figure approximating the Earth's form, used as a reference frame for computations in geodesy, astronomy, and the geosciences. Various different ellipsoids have been used as approximations ...
.


Background

Vincenty's goal was to express existing algorithms for
geodesics on an ellipsoid The study of geodesics on an ellipsoid arose in connection with geodesy specifically with the solution of triangulation networks. The figure of the Earth is well approximated by an '' oblate ellipsoid'', a slightly flattened sphere. A ''geodes ...
in a form that minimized the program length (Vincenty 1975a). His unpublished report (1975b) mentions the use of a Wang 720 desk calculator, which had only a few kilobytes of memory. To obtain good accuracy for long lines, the solution uses the classical solution of Legendre (1806), Bessel (1825), and Helmert (1880) based on the auxiliary sphere. Vincenty relied on formulation of this method given by Rainsford, 1955. Legendre showed that an ellipsoidal geodesic can be exactly mapped to a great circle on the auxiliary sphere by mapping the geographic latitude to reduced latitude and setting the azimuth of the great circle equal to that of the geodesic. The longitude on the ellipsoid and the distance along the geodesic are then given in terms of the longitude on the sphere and the arc length along the great circle by simple integrals. Bessel and Helmert gave rapidly converging series for these integrals, which allow the geodesic to be computed with arbitrary accuracy. In order to minimize the program size, Vincenty took these series, re-expanded them using the first term of each series as the small parameter, and truncated them to O(f^3). This resulted in compact expressions for the longitude and distance integrals. The expressions were put in Horner (or ''nested'') form, since this allows polynomials to be evaluated using only a single temporary register. Finally, simple iterative techniques were used to solve the implicit equations in the direct and inverse methods; even though these are slow (and in the case of the inverse method it sometimes does not converge), they result in the least increase in code size.


Notation

Define the following notation:


Inverse problem

Given the coordinates of the two points (''Φ''1, ''L''1) and (''Φ''2, ''L''2), the inverse problem finds the azimuths ''α''1, ''α''2 and the ellipsoidal distance ''s''. Calculate ''U''1, ''U''2 and ''L'', and set initial value of ''λ'' = ''L''. Then iteratively evaluate the following equations until ''λ'' converges: : \sin\sigma = \sqrt : \cos\sigma = \sin U_1 \sin U_2 + \cos U_1 \cos U_2 \cos\lambda\, : \sigma = \operatorname\left(\sin\sigma, \cos\sigma\right)''σ'' is not evaluated directly from sin ''σ'' or cos ''σ'' to preserve numerical accuracy near the poles and equator : \sin\alpha = \fracIf sin ''σ = 0'' the value of sin ''α'' is indeterminate. It represents an end point coincident with, or diametrically opposed to, the start point. : \cos\left(2\sigma_\text\right) = \cos\sigma - \frac = \cos\sigma - \fracWhere the start and end point are on the equator, and the value of \cos\left(2\sigma_\text\right) is not used. The limiting value is \cos\left(2\sigma_\text\right) = -1. : C = \frac \cos^2\alpha \left + f\left(4 - 3\cos^2 \alpha\right)\right/math> : \lambda = L + (1 - C)f \sin \alpha \left\ When ''λ'' has converged to the desired degree of accuracy (10−12 corresponds to approximately 0.06mm), evaluate the following: : \begin u^2 &= \cos^2\alpha \left(\frac\right) \\ A &= 1 + \frac \left(4096 + u^2 \left 768 + u^2 \left(320 - 175u^2\right)\rightright) \\ B &= \frac \left(256 + u^2 \left 128 + u^2 \left(74 - 47u^2\right)\rightright) \\ \Delta\sigma &= B \sin\sigma \left\ \\ s &= b A(\sigma - \Delta \sigma) \, \\ \alpha_1 &= \operatorname\left( \cos U_2 \sin\lambda, \cos U_1 \sin U_2 - \sin U_1 \cos U_2 \cos\lambda \right) \\ \alpha_2 &= \operatorname\left( \cos U_1 \sin\lambda, -\sin U_1 \cos U_2 + \cos U_1 \sin U_2 \cos\lambda \right) \end Between two nearly antipodal points, the iterative formula may fail to converge; this will occur when the first guess at ''λ'' as computed by the equation above is greater than ''π'' in absolute value.


Direct problem

Given an initial point (''Φ''1, ''L''1) and initial azimuth, ''α''1, and a distance, ''s'', along the geodesic the problem is to find the end point (''Φ''2, ''L''2) and azimuth, ''α''2. Start by calculating the following: : \begin U_1 &= \arctan\left 1 - f)\tan\phi_1\right\\ \sigma_1 &= \operatorname\left(\tan U_1, \cos\alpha_1\right) \\ \sin\alpha &= \cos U_1 \sin\alpha_1 \\ u^2 &= \cos^2\alpha \left(\frac\right) = \left(1 - \sin^2\alpha\right)\left(\frac\right) \\ A &= 1 + \frac \left(4096 + u^2 \left 768 + u^2(320 - 175u^2)\rightright) \\ B &= \frac \left(256 + u^2\left 128 + u^2\left(74 - 47u^2\right)\rightright) \end Then, using an initial value \sigma = \tfrac , iterate the following equations until there is no significant change in ''σ'': :\begin 2\sigma_\text &= 2\sigma_1 + \sigma \\ \Delta\sigma &= B \sin\sigma \left\ \\ \sigma &= \frac + \Delta\sigma \end Once ''σ'' is obtained to sufficient accuracy evaluate: : \begin \phi_2 &= \operatorname\left( \sin U_1 \cos\sigma + \cos U_1 \sin\sigma \cos\alpha_1, (1 - f) \sqrt \right) \\ \lambda &= \operatorname\left( \sin\sigma \sin\alpha_1, \cos U_1 \cos\sigma - \sin U_1 \sin\sigma \cos\alpha_1 \right) \\ C &= \frac \cos^2\alpha \left + f\left(4 - 3\cos^2\alpha\right)\right\\ L &= \lambda - (1 - C)f \sin\alpha \left\ \\ L_2 &= L + L_1 \\ \alpha_2 &= \operatorname\left( \sin\alpha, -\sin U_1 \sin\sigma + \cos U_1 \cos\sigma \cos\alpha_1 \right) \end If the initial point is at the North or South pole, then the first equation is indeterminate. If the initial azimuth is due East or West, then the second equation is indeterminate. If a double valued ''atan2'' type function is used, then these values are usually handled correctly.


Vincenty's modification

In his letter to Survey Review in 1976, Vincenty suggested replacing his series expressions for ''A'' and ''B'' with simpler formulas using Helmert's expansion parameter ''k''1: : A = \frac : B = k_1\left(1 - \frac^2\right) where : k_1 = \frac


Nearly antipodal points

As noted above, the iterative solution to the inverse problem fails to converge or converges slowly for nearly antipodal points. An example of slow convergence is (''Φ''1, ''L''1) = (0°, 0°) and (''Φ''2, ''L''2) = (0.5°, 179.5°) for the WGS84 ellipsoid. This requires about 130 iterations to give a result accurate to 1 mm. Depending on how the inverse method is implemented, the algorithm might return the correct result (19936288.579 m), an incorrect result, or an error indicator. An example of an incorrect result is provided by th
NGS online utility
which returns a distance that is about 5 km too long. Vincenty suggested a method of accelerating the convergence in such cases (Rapp, 1993). An example of a failure of the inverse method to converge is (''Φ''1, ''L''1) = (0°, 0°) and (''Φ''2, ''L''2) = (0.5°, 179.7°) for the WGS84 ellipsoid. In an unpublished report, Vincenty (1975b) gave an alternative iterative scheme to handle such cases. This converges to the correct result 19944127.421 m after about 60 iterations; however, in other cases many thousands of iterations are required. Karney (2013) reformulated the inverse problem as a one-dimensional root-finding problem; this can be rapidly solved with Newton's method for all pairs of input points.


See also

*
Geographical distance Geographical distance or geodetic distance is the distance measured along the surface of the earth. The formulae in this article calculate distances between points which are defined by geographical coordinates in terms of latitude and longitude. ...
* Great-circle distance * Meridian arc *
Geodesics on an ellipsoid The study of geodesics on an ellipsoid arose in connection with geodesy specifically with the solution of triangulation networks. The figure of the Earth is well approximated by an '' oblate ellipsoid'', a slightly flattened sphere. A ''geodes ...
* Thaddeus Vincenty * Geodesy


Notes


References

* English translation of Astron. Nachr. 4, 241–254 (1825). * English translation of ''Die Mathematischen und Physikalischen Theorieen der Höheren Geodäsie'', Vol. 1 (Teubner, Leipzig, 1880). *
Addenda
* * * * * * *


External links

* Online calculators from
Geoscience Australia Geoscience Australia is an agency of the Australian Government. It carries out geoscientific research. The agency is the government's technical adviser on all aspects of geoscience, and custodian of the geographic and geological data and knowl ...
: *
Vincenty Direct
(destination point) *
Vincenty Inverse
(distance between points) * Calculators from the
U.S. National Geodetic Survey The National Geodetic Survey (NGS) is a United States federal agency that defines and manages a national coordinate system, providing the foundation for transportation and communication; mapping and charting; and a large number of applications ...
: *
Online and downloadable PC-executable calculation utilities
including forward (direct) and inverse problems, in both two and three dimensions (accessed 2011-08-01). * Online calculators with JavaScript source code by Chris Veness (Creative Commons Attribution license): *

(destination point) *

(distance between points)
GeographicLib
provides a utility GeodSolve (with MIT/X11 licensed source code) for solving direct and inverse geodesic problems. Compared to Vincenty, this is about 1000 times more accurate (error = 15 nm) and the inverse solution is complete. Here is a
online version of GeodSolve

Complete Vincenty's direct and inverse formulae implementation with source code, Excel VBA implementation by Tomasz Jastrzębski
{{DEFAULTSORT:Vincenty's Formulae Geodesy Distance