Spherical Distance
   HOME

TheInfoList



OR:

The great-circle distance, orthodromic distance, or spherical distance is the
distance Distance is a numerical or occasionally qualitative measurement of how far apart objects, points, people, or ideas are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two co ...
between two points on a
sphere A sphere (from Ancient Greek, Greek , ) is a surface (mathematics), surface analogous to the circle, a curve. In solid geometry, a sphere is the Locus (mathematics), set of points that are all at the same distance from a given point in three ...
, measured along the great-circle arc between them. This arc is the shortest path between the two points on the surface of the sphere. (By comparison, the shortest path passing through the sphere's interior is the chord between the points.) On a curved surface, the concept of straight lines is replaced by a more general concept of geodesics, curves which are locally straight with respect to the surface. Geodesics on the sphere are great circles, circles whose center coincides with the center of the sphere. Any two distinct points on a sphere that are not antipodal (diametrically opposite) both lie on a unique great circle, which the points separate into two arcs; the length of the shorter arc is the great-circle distance between the points. This arc length is proportional to the central angle between the points, which if measured in
radian The radian, denoted by the symbol rad, is the unit of angle in the International System of Units (SI) and is the standard unit of angular measure used in many areas of mathematics. It is defined such that one radian is the angle subtended at ...
s can be scaled up by the sphere's
radius In classical geometry, a radius (: radii or radiuses) of a circle or sphere is any of the line segments from its Centre (geometry), center to its perimeter, and in more modern usage, it is also their length. The radius of a regular polygon is th ...
to obtain the arc length. Two antipodal points both lie on infinitely many great circles, each of which they divide into two arcs of length times the radius. The determination of the great-circle distance is part of the more general problem of great-circle navigation, which also computes the
azimuth An azimuth (; from ) is the horizontal angle from a cardinal direction, most commonly north, in a local or observer-centric spherical coordinate system. Mathematically, the relative position vector from an observer ( origin) to a point ...
s at the end points and intermediate way-points. Because the Earth is nearly spherical, great-circle distance formulas applied to longitude and geodetic latitude of points on Earth are accurate to within about 0.5%.


Formulae

Let \lambda_1, \phi_1 and \lambda_2, \phi_2 be the geographical
longitude Longitude (, ) is a geographic coordinate that specifies the east- west position of a point on the surface of the Earth, or another celestial body. It is an angular measurement, usually expressed in degrees and denoted by the Greek lett ...
and
latitude In geography, latitude is a geographic coordinate system, geographic coordinate that specifies the north-south position of a point on the surface of the Earth or another celestial body. Latitude is given as an angle that ranges from −90° at t ...
of two points 1 and 2, and \Delta\lambda, \Delta\phi be their absolute differences; then \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: :\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 \Delta\sigma. Given this angle in radians, the actual
arc length Arc length is the distance between two points along a section of a curve. Development of a formulation of arc length suitable for applications to mathematics and the sciences is a problem in vector calculus and in differential geometry. In the ...
''d'' on a sphere of radius ''r'' can be trivially computed as :d = r \, \Delta\sigma.


Relation between central angle and chord length

The central angle \Delta\sigma is related with the chord length of unit sphere \Delta\sigma_\text\,\!: :\begin \Delta\sigma &= 2\arcsin \frac ,\\ \Delta\sigma_\text &= 2\sin \frac . \end For short-distance approximation (, \Delta\sigma_\text, \ll 1), :\Delta\sigma = \Delta\sigma_\text \left(1 + \frac \left(\Delta\sigma_\text\right)^2 + \cdots \right).


Computational formulae

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. The haversine formula is numerically better-conditioned for small distances by using the chord-length relation: :\begin \Delta\sigma &= \operatorname\left( \operatorname\left(\Delta\phi\right) + \left(1 - \operatorname(\Delta\phi) - \operatorname(\phi_1 + \phi_2)\right) \operatorname\left(\Delta\lambda\right)\right) . \end Historically, the use of this formula was simplified by the availability of tables for the haversine function: \operatorname \theta = \sin^2 \frac and \operatorname x = 2 \arcsin \sqrt. The following shows the equivalent formula expressing the chord length explicitly: :\begin\Delta\sigma_\text&=2\sqrt \ , \\ &=2\sqrt \ , \end where \phi_\text=\tfrac12(\phi_1+\phi_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: :\begin \Delta\sigma = \Bigl( &\sqrt, \\ &\quad \Bigr), \end where is the two-argument arctangent. Using atan2 ensures that the correct quadrant is chosen.


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 In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
,
cross product In mathematics, the cross product or vector product (occasionally directed area product, to emphasize its geometric significance) is a binary operation on two vectors in a three-dimensional oriented Euclidean vector space (named here E), and ...
, or a combination: :\begin \Delta\sigma &= \arccos \left(\mathbf n_1 \cdot \mathbf n_2\right) \\ &= \arcsin \left, \mathbf n_1 \times \mathbf n_2 \ \\ &= \arctan \frac \\ \end where \mathbf n_1 and \mathbf n_2 are the normals to the sphere 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 Spherical Earth or Earth's curvature refers to the approximation of the figure of the Earth as a sphere. The earliest documented mention of the concept dates from around the 5th century BC, when it appears in the writings of Ancient Greek philos ...
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, \Delta\sigma_\text\,\!, may be calculated as follows for the corresponding unit sphere, by means of Cartesian subtraction: :\begin \Delta &= \cos\phi_2\cos\lambda_2 - \cos\phi_1\cos\lambda_1;\\ \Delta &= \cos\phi_2\sin\lambda_2 - \cos\phi_1\sin\lambda_1;\\ \Delta &= \sin\phi_2 - \sin\phi_1;\\ \Delta\sigma_\text &= \sqrt. \end Substituting \lambda_1 = -\tfrac12\Delta \lambda and \lambda_2 = \tfrac12 \Delta \lambda this formula can be algebraically manipulated to the form shown above in .


Radius for spherical Earth

The shape of the Earth closely resembles a flattened sphere (a
spheroid A spheroid, also known as an ellipsoid of revolution or rotational ellipsoid, is a quadric surface (mathematics), surface obtained by Surface of revolution, rotating an ellipse about one of its principal axes; in other words, an ellipsoid with t ...
) with equatorial radius a of 6378.137 km; distance 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 \frac (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 \frac, 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 = \frac(2a + b) \approx 6371.009\text (for the WGS84 ellipsoid) means that in the limit of small flattening, the mean square relative error in the estimates for distance is minimized. For distances smaller than 500 kilometers and outside of the poles, a Euclidean approximation of an ellipsoidal Earth ( Federal Communications Commission's (FCC)'s formula) is both simpler and more accurate (to 0.1%).


See also

* Air navigation *
Angular distance Angular distance or angular separation is the measure of the angle between the orientation (geometry), orientation of two straight lines, ray (geometry), rays, or vector (geometry), vectors in three-dimensional space, or the central angle subtende ...
* Circumnavigation * * Flight planning *
Geodesy Geodesy or geodetics is the science of measuring and representing the Figure of the Earth, geometry, Gravity of Earth, gravity, and Earth's rotation, spatial orientation of the Earth in Relative change, temporally varying Three-dimensional spac ...
* Geodesics on an ellipsoid * Geodetic system * Geographical distance * Isoazimuthal * Loxodromic navigation *
Meridian arc In geodesy and navigation, a meridian arc is the curve (geometry), curve between two points near the Earth's surface having the same longitude. The term may refer either to a arc (geometry), segment of the meridian (geography), meridian, or to its ...
* Rhumb line * Spherical geometry *
Spherical trigonometry Spherical trigonometry is the branch of spherical geometry that deals with the metrical relationships between the edge (geometry), sides and angles of spherical triangles, traditionally expressed using trigonometric functions. On the sphere, ge ...
* Versor


References and notes


External links


GreatCircle
at MathWorld {{DEFAULTSORT:Great-Circle Distance Metric geometry Spherical trigonometry Distance Spherical curves