fbpx
Wikipedia

Great-circle distance

The great-circle distance, orthodromic distance, or spherical distance is the distance along a great circle.

A diagram illustrating great-circle distance (drawn in red) between two points on a sphere, P and Q. Two antipodal points, u and v are also shown.

It is the shortest distance between two points on the surface of a sphere, measured along the surface of the sphere (as opposed to a straight line through the sphere's interior). The distance between two points in Euclidean space is the length of a straight line between them, but on the sphere there are no straight lines. In spaces with curvature, straight lines are replaced by geodesics. Geodesics on the sphere are circles on the sphere whose centers coincide with the center of the sphere, and are called 'great circles'.

The determination of the great-circle distance is part of the more general problem of great-circle navigation, which also computes the azimuths at the end points and intermediate way-points.

Through any two points on a sphere that are not antipodal points (directly opposite each other), there is a unique great circle. The two points separate the great circle into two arcs. The length of the shorter arc is the great-circle distance between the points. A great circle endowed with such a distance is called a Riemannian circle in Riemannian geometry.

Between antipodal points, there are infinitely many great circles, and all great circle arcs between antipodal points have a length of half the circumference of the circle, or , where r is the radius of the sphere.

The Earth is nearly spherical, so great-circle distance formulas give the distance between points on the surface of the Earth correct to within about 0.5%.[1]

The vertex is the highest-latitude point on a great circle.

Formulae

 
An illustration of the central angle, Δσ, between two points, P and Q. λ and φ are the longitudinal and latitudinal angles of P respectively

Let   and   be the geographical longitude and latitude of two points 1 and 2, and   be their absolute differences; then  , the central angle between them, is given by the spherical law of cosines if one of the poles is used as an auxiliary third point on the sphere:[2]

 

The problem is normally expressed in terms of finding the central angle  . Given this angle in radians, the actual arc length d on a sphere of radius r can be trivially computed as

 

Computational formulas

On computer systems with low floating point precision, the spherical law of cosines formula can have large rounding errors if the distance is small (if the two points are a kilometer apart on the surface of the Earth, the cosine of the central angle is near 0.99999999). For modern 64-bit floating-point numbers, the spherical law of cosines formula, given above, does not have serious rounding errors for distances larger than a few meters on the surface of the Earth.[3] The haversine formula is numerically better-conditioned for small distances:[4]

 

Historically, the use of this formula was simplified by the availability of tables for the haversine function: hav(θ) = sin2(θ/2).

Although this formula is accurate for most distances on a sphere, it too suffers from rounding errors for the special (and somewhat unusual) case of antipodal points. A formula that is accurate for all distances is the following special case of the Vincenty formula for an ellipsoid with equal major and minor axes:[5]

 

Here the quadrant for   should be governed by the signs of the numerator and denominator of the right hand side, e.g., using the atan2 function.

Vector version

Another representation of similar formulas, but using normal vectors instead of latitude and longitude to describe the positions, is found by means of 3D vector algebra, using the dot product, cross product, or a combination:[6]

 

where   and   are the normals to the ellipsoid at the two positions 1 and 2. Similarly to the equations above based on latitude and longitude, the expression based on arctan is the only one that is well-conditioned for all angles. The expression based on arctan requires the magnitude of the cross product over the dot product.

From chord length

A line through three-dimensional space between points of interest on a spherical Earth is the chord of the great circle between the points. The central angle between the two points can be determined from the chord length. The great circle distance is proportional to the central angle.

The great circle chord length,  , may be calculated as follows for the corresponding unit sphere, by means of Cartesian subtraction:

 

The central angle is:

 

Radius for spherical Earth

 
Equatorial (a), polar (b) and mean Earth radii as defined in the 1984 World Geodetic System revision. (Not to scale.)

The shape of the Earth closely resembles a flattened sphere (a spheroid) with equatorial radius   of 6378.137 km; distance   from the center of the spheroid to each pole is 6356.7523142 km. When calculating the length of a short north-south line at the equator, the circle that best approximates that line has a radius of   (which equals the meridian's semi-latus rectum), or 6335.439 km, while the spheroid at the poles is best approximated by a sphere of radius  , or 6399.594 km, a 1% difference. So long as a spherical Earth is assumed, any single formula for distance on the Earth is only guaranteed correct within 0.5% (though better accuracy is possible if the formula is only intended to apply to a limited area). Using the mean earth radius,   (for the WGS84 ellipsoid) means that in the limit of small flattening, the mean square relative error in the estimates for distance is minimized.[7]

See also

References and notes

  1. ^ Admiralty Manual of Navigation, Volume 1, The Stationery Office, 1987, p. 10, ISBN 9780117728806, The errors introduced by assuming a spherical Earth based on the international nautical mile are not more than 0.5% for latitude, 0.2% for longitude.
  2. ^ Kells, Lyman M.; Kern, Willis F.; Bland, James R. (1940). Plane And Spherical Trigonometry. McGraw Hill Book Company, Inc. pp. 323-326. Retrieved July 13, 2018.
  3. ^ "Calculate distance, bearing and more between Latitude/Longitude points". Retrieved 10 Aug 2013.
  4. ^ Sinnott, Roger W. (August 1984). "Virtues of the Haversine". Sky and Telescope. 68 (2): 159.
  5. ^ Vincenty, Thaddeus (1975-04-01). "Direct and Inverse Solutions of Geodesics on the Ellipsoid with Application of Nested Equations" (PDF). Survey Review. Kingston Road, Tolworth, Surrey: Directorate of Overseas Surveys. 23 (176): 88–93. doi:10.1179/sre.1975.23.176.88. Retrieved 2008-07-21.
  6. ^ Gade, Kenneth (2010). "A non-singular horizontal position representation" (PDF). The Journal of Navigation. Cambridge University Press. 63 (3): 395–417. doi:10.1017/S0373463309990415.
  7. ^ McCaw, G. T. (1932). "Long lines on the Earth". Empire Survey Review. 1 (6): 259–263. doi:10.1179/sre.1932.1.6.259.

External links

great, circle, distance, this, article, about, shortest, distance, sphere, shortest, distance, ellipsoid, geodesics, ellipsoid, great, circle, distance, orthodromic, distance, spherical, distance, distance, along, great, circle, diagram, illustrating, great, c. This article is about shortest distance on a sphere For the shortest distance on an ellipsoid see geodesics on an ellipsoid The great circle distance orthodromic distance or spherical distance is the distance along a great circle A diagram illustrating great circle distance drawn in red between two points on a sphere P and Q Two antipodal points u and v are also shown It is the shortest distance between two points on the surface of a sphere measured along the surface of the sphere as opposed to a straight line through the sphere s interior The distance between two points in Euclidean space is the length of a straight line between them but on the sphere there are no straight lines In spaces with curvature straight lines are replaced by geodesics Geodesics on the sphere are circles on the sphere whose centers coincide with the center of the sphere and are called great circles The determination of the great circle distance is part of the more general problem of great circle navigation which also computes the azimuths at the end points and intermediate way points Through any two points on a sphere that are not antipodal points directly opposite each other there is a unique great circle The two points separate the great circle into two arcs The length of the shorter arc is the great circle distance between the points A great circle endowed with such a distance is called a Riemannian circle in Riemannian geometry Between antipodal points there are infinitely many great circles and all great circle arcs between antipodal points have a length of half the circumference of the circle or p r displaystyle pi r where r is the radius of the sphere The Earth is nearly spherical so great circle distance formulas give the distance between points on the surface of the Earth correct to within about 0 5 1 The vertex is the highest latitude point on a great circle Contents 1 Formulae 1 1 Computational formulas 1 2 Vector version 1 3 From chord length 2 Radius for spherical Earth 3 See also 4 References and notes 5 External linksFormulae Edit An illustration of the central angle Ds between two points P and Q l and f are the longitudinal and latitudinal angles of P respectively Let l 1 ϕ 1 displaystyle lambda 1 phi 1 and l 2 ϕ 2 displaystyle lambda 2 phi 2 be the geographical longitude and latitude of two points 1 and 2 and D l D ϕ displaystyle Delta lambda Delta phi be their absolute differences then D s displaystyle Delta sigma the central angle between them is given by the spherical law of cosines if one of the poles is used as an auxiliary third point on the sphere 2 D s arccos sin ϕ 1 sin ϕ 2 cos ϕ 1 cos ϕ 2 cos D l displaystyle Delta sigma arccos bigl sin phi 1 sin phi 2 cos phi 1 cos phi 2 cos Delta lambda bigr The problem is normally expressed in terms of finding the central angle D s displaystyle Delta sigma Given this angle in radians the actual arc length d on a sphere of radius r can be trivially computed as d r D s displaystyle d r Delta sigma Computational formulas Edit On computer systems with low floating point precision the spherical law of cosines formula can have large rounding errors if the distance is small if the two points are a kilometer apart on the surface of the Earth the cosine of the central angle is near 0 99999999 For modern 64 bit floating point numbers the spherical law of cosines formula given above does not have serious rounding errors for distances larger than a few meters on the surface of the Earth 3 The haversine formula is numerically better conditioned for small distances 4 D s archav hav D ϕ 1 hav D ϕ hav ϕ 1 ϕ 2 hav D l 2 arcsin sin 2 D ϕ 2 1 sin 2 D ϕ 2 sin 2 ϕ 1 ϕ 2 2 sin 2 D l 2 displaystyle begin aligned Delta sigma amp operatorname archav left operatorname hav left Delta phi right left 1 operatorname hav Delta phi operatorname hav phi 1 phi 2 right cdot operatorname hav left Delta lambda right right amp 2 arcsin sqrt sin 2 left frac Delta phi 2 right left 1 sin 2 left frac Delta phi 2 right sin 2 left frac phi 1 phi 2 2 right right cdot sin 2 left frac Delta lambda 2 right end aligned Historically the use of this formula was simplified by the availability of tables for the haversine function hav 8 sin2 8 2 Although this formula is accurate for most distances on a sphere it too suffers from rounding errors for the special and somewhat unusual case of antipodal points A formula that is accurate for all distances is the following special case of the Vincenty formula for an ellipsoid with equal major and minor axes 5 D s arctan cos ϕ 2 sin D l 2 cos ϕ 1 sin ϕ 2 sin ϕ 1 cos ϕ 2 cos D l 2 sin ϕ 1 sin ϕ 2 cos ϕ 1 cos ϕ 2 cos D l displaystyle Delta sigma arctan frac sqrt left cos phi 2 sin Delta lambda right 2 left cos phi 1 sin phi 2 sin phi 1 cos phi 2 cos Delta lambda right 2 sin phi 1 sin phi 2 cos phi 1 cos phi 2 cos Delta lambda Here the quadrant for D s displaystyle Delta sigma should be governed by the signs of the numerator and denominator of the right hand side e g using the atan2 function Vector version Edit Another representation of similar formulas but using normal vectors instead of latitude and longitude to describe the positions is found by means of 3D vector algebra using the dot product cross product or a combination 6 D s arccos n 1 n 2 arcsin n 1 n 2 arctan n 1 n 2 n 1 n 2 displaystyle begin aligned Delta sigma amp arccos left mathbf n 1 cdot mathbf n 2 right amp arcsin left mathbf n 1 times mathbf n 2 right amp arctan frac left mathbf n 1 times mathbf n 2 right mathbf n 1 cdot mathbf n 2 end aligned where n 1 displaystyle mathbf n 1 and n 2 displaystyle mathbf n 2 are the normals to the ellipsoid at the two positions 1 and 2 Similarly to the equations above based on latitude and longitude the expression based on arctan is the only one that is well conditioned for all angles The expression based on arctan requires the magnitude of the cross product over the dot product From chord length Edit A line through three dimensional space between points of interest on a spherical Earth is the chord of the great circle between the points The central angle between the two points can be determined from the chord length The great circle distance is proportional to the central angle The great circle chord length C h displaystyle C h may be calculated as follows for the corresponding unit sphere by means of Cartesian subtraction D X cos ϕ 2 cos l 2 cos ϕ 1 cos l 1 D Y cos ϕ 2 sin l 2 cos ϕ 1 sin l 1 D Z sin ϕ 2 sin ϕ 1 C D X 2 D Y 2 D Z 2 displaystyle begin aligned Delta X amp cos phi 2 cos lambda 2 cos phi 1 cos lambda 1 Delta Y amp cos phi 2 sin lambda 2 cos phi 1 sin lambda 1 Delta Z amp sin phi 2 sin phi 1 C amp sqrt Delta X 2 Delta Y 2 Delta Z 2 end aligned The central angle is D s 2 arcsin C 2 displaystyle Delta sigma 2 arcsin frac C 2 Radius for spherical Earth Edit Equatorial a polar b and mean Earth radii as defined in the 1984 World Geodetic System revision Not to scale Main article Earth radius The shape of the Earth closely resembles a flattened sphere a spheroid with equatorial radius a displaystyle a of 6378 137 km distance b displaystyle b from the center of the spheroid to each pole is 6356 7523142 km When calculating the length of a short north south line at the equator the circle that best approximates that line has a radius of b 2 a textstyle frac b 2 a which equals the meridian s semi latus rectum or 6335 439 km while the spheroid at the poles is best approximated by a sphere of radius a 2 b textstyle frac a 2 b or 6399 594 km a 1 difference So long as a spherical Earth is assumed any single formula for distance on the Earth is only guaranteed correct within 0 5 though better accuracy is possible if the formula is only intended to apply to a limited area Using the mean earth radius R 1 1 3 2 a b 6371 009 km textstyle R 1 frac 1 3 2a b approx 6371 009 text km for the WGS84 ellipsoid means that in the limit of small flattening the mean square relative error in the estimates for distance is minimized 7 See also EditAir navigation Angular distance Circumnavigation Flight planning Geodesy Geodesics on an ellipsoid Geodetic system Geographical distance Isoazimuthal Loxodromic navigation Meridian arc Rhumb line Spherical geometry Spherical trigonometryReferences and notes Edit Admiralty Manual of Navigation Volume 1 The Stationery Office 1987 p 10 ISBN 9780117728806 The errors introduced by assuming a spherical Earth based on the international nautical mile are not more than 0 5 for latitude 0 2 for longitude Kells Lyman M Kern Willis F Bland James R 1940 Plane And Spherical Trigonometry McGraw Hill Book Company Inc pp 323 326 Retrieved July 13 2018 Calculate distance bearing and more between Latitude Longitude points Retrieved 10 Aug 2013 Sinnott Roger W August 1984 Virtues of the Haversine Sky and Telescope 68 2 159 Vincenty Thaddeus 1975 04 01 Direct and Inverse Solutions of Geodesics on the Ellipsoid with Application of Nested Equations PDF Survey Review Kingston Road Tolworth Surrey Directorate of Overseas Surveys 23 176 88 93 doi 10 1179 sre 1975 23 176 88 Retrieved 2008 07 21 Gade Kenneth 2010 A non singular horizontal position representation PDF The Journal of Navigation Cambridge University Press 63 3 395 417 doi 10 1017 S0373463309990415 McCaw G T 1932 Long lines on the Earth Empire Survey Review 1 6 259 263 doi 10 1179 sre 1932 1 6 259 External links EditGreatCircle at MathWorld Retrieved from https en wikipedia org w index php title Great circle distance amp oldid 1135618859, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.