Geographic coordinate conversion

Short description: Overview of GPS conversion formulas

In geodesy, conversion among different geographic coordinate systems is made necessary by the different geographic coordinate systems in use across the world and over time. Coordinate conversion is composed of a number of different types of conversion: format change of geographic coordinates, conversion of coordinate systems, or transformation to different geodetic datums. Geographic coordinate conversion has applications in cartography, surveying, navigation and geographic information systems.

In geodesy, geographic coordinate conversion is defined as translation among different coordinate formats or map projections all referenced to the same geodetic datum.[1] A geographic coordinate transformation is a translation among different geodetic datums. Both geographic coordinate conversion and transformation will be considered in this article.

This article assumes readers are already familiar with the content in the articles geographic coordinate system and geodetic datum.

## Contents

* 1 Change of units and format
* 2 Coordinate system conversion
* 2.1 From geodetic to ECEF coordinates
* 2.1.1 Properties
* 2.1.2 Orthogonality
* 2.2 From ECEF to geodetic coordinates
* 2.2.1 Conversion for the longitude
* 2.2.2 Simple iterative conversion for latitude and height
* 2.2.3 Newton–Raphson method
* 2.2.4 Ferrari's solution
* 2.2.4.1 The application of Ferrari's solution
* 2.2.5 Power series
* 2.3 Geodetic to/from ENU coordinates
* 2.3.1 From ECEF to ENU
* 2.3.2 From ENU to ECEF
* 2.4 Conversion across map projections
* 3 Datum transformations
* 3.1 Helmert transformation
* 3.2 Molodensky-Badekas transformation
* 3.3 Molodensky transformation
* 3.4 Grid-based method
* 3.5 Multiple regression equations
* 4 See also
* 5 References

## Change of units and format

Informally, specifying a geographic location usually means giving the location's latitude and longitude. The numerical values for latitude and longitude can occur in a number of different units or formats:[2]

* sexagesimal degree: degrees, minutes, and seconds : 40° 26′ 46″ N 79° 58′ 56″ W
* degrees and decimal minutes: 40° 26.767′ N 79° 58.933′ W
* decimal degrees: +40.446 -79.982

There are 60 minutes in a degree and 60 seconds in a minute. Therefore, to convert from a degrees minutes seconds format to a decimal degrees format, one may use the formula

decimal degrees=degrees+minutes60+seconds3600.

To convert back from decimal degree format to degrees minutes seconds format,

absDegrees=|decimal degrees|floorAbsDegrees=⌊absDegrees⌋degrees=sgn⁡(decimal degrees)×floorAbsDegreesminutes=⌊60×(absDegrees−floorAbsDegrees)⌋seconds=3600×(absDegrees−floorAbsDegrees)−60×minutes

where absDegrees and floorAbsDegrees are just temporary variables to handle both positive and negative values properly.

## Coordinate system conversion

A coordinate system conversion is a conversion from one coordinate system to another, with both coordinate systems based on the same geodetic datum. Common conversion tasks include conversion between geodetic and earth-centered, earth-fixed (ECEF) coordinates and conversion from one type of map projection to another.

### From geodetic to ECEF coordinates

The length PQ, called the prime vertical radius, is N(ϕ). The length IQ is equal to e2N(ϕ). R=(X,Y,Z).

Geodetic coordinates (latitude  ϕ, longitude  λ, height h) can be converted into ECEF coordinates using the following equation:[3]

X=(N(ϕ)+h)cos⁡ϕcos⁡λY=(N(ϕ)+h)cos⁡ϕsin⁡λZ=(b2a2N(ϕ)+h)sin⁡ϕ=((1−e2)N(ϕ)+h)sin⁡ϕ=((1−f)2N(ϕ)+h)sin⁡ϕ

where

N(ϕ)=a2a2cos2ϕ+b2sin2ϕ=a1−e2sin2ϕ=a1−e21+cot2ϕ,

and a and b are the equatorial radius (semi-major axis) and the polar radius (semi-minor axis), respectively. e2=1−b2a2 is the square of the first numerical eccentricity of the ellipsoid. f=1−ba is the flattening of the ellipsoid. The prime vertical radius of curvature N(ϕ) is the distance from the surface to the Z-axis along the ellipsoid normal.

#### Properties

The following condition holds for the longitude in the same way as in the geocentric coordinates system:

Xcos⁡λ−Ysin⁡λ=0.

And the following holds for the latitude:

pcos⁡ϕ−Zsin⁡ϕ−e2N(ϕ)=0,

where p=X2+Y2, as the parameter h is eliminated by subtracting

pcos⁡ϕ=N+h

and

Zsin⁡ϕ=b2a2N+h.

The following holds furthermore, derived from dividing above equations:

Zpcot⁡ϕ=1−e2NN+h.

#### Orthogonality

The orthogonality of the coordinates is confirmed via differentiation:

(dXdYdZ)=(−sin⁡λ−sin⁡ϕcos⁡λcos⁡ϕcos⁡λcos⁡λ−sin⁡ϕsin⁡λcos⁡ϕsin⁡λ0cos⁡ϕsin⁡ϕ)(dEdNdU),(dEdNdU)=((N(ϕ)+h)cos⁡ϕ000M(ϕ)+h0001)(dλdϕdh),

where

M(ϕ)=a(1−e2)(1−e2sin2ϕ)32=N(ϕ)1−e21−e2sin2ϕ

(see also "Meridian arc on the ellipsoid").

### From ECEF to geodetic coordinates

#### Conversion for the longitude

The conversion of ECEF coordinates to longitude is:

λ=atan2⁡(Y,X).

where atan2 is the quadrant-resolving arc-tangent function. The geocentric longitude and geodetic longitude have the same value; this is true for Earth and other similar shaped planets because they have a large amount of rotational symmetry around their spin axis (see triaxial ellipsoidal longitude for a generalization).

#### Simple iterative conversion for latitude and height

Unless the parameter h is eliminated, the conversion for the latitude ϕ and height h involves a circular relationship involving N, which is a function of latitude:

Zpcot⁡ϕ=1−e2NN+h,
h=pcos⁡ϕ−N.

It can be solved iteratively,[4][5] for example, starting with a first guess h≈0 then updating N. More elaborate methods are shown below. The procedure is, however, sensitive to small accuracy due to N and h being maybe 106 apart.[6][7]

#### Newton–Raphson method

The following Bowring's irrational geodetic-latitude equation,[8] derived simply from the above properties, is efficient to be solved by Newton–Raphson iteration method:[9][10]

κ−1−e2aκp2+(1−e2)Z2κ2=0,

where κ=pZtan⁡ϕ. The height is calculated as:

h=e−2(κ−1−κ0−1)p2+Z2κ2,κ0≜(1−e2)−1.

The iteration can be transformed into the following calculation:

κi+1=ci+(1−e2)Z2κi3ci−p2=1+p2+(1−e2)Z2κi3ci−p2,

where ci=(p2+(1−e2)Z2κi2)32ae2.

The constant κ0 is a good starter value for the iteration when h≈0. Bowring showed that the single iteration produces a sufficiently accurate solution. He used extra trigonometric functions in his original formulation.

#### Ferrari's solution

The quartic equation of κ, derived from the above, can be solved by Ferrari's solution[11][12] to yield:

ζ=(1−e2)z2a2,ρ=16(p2a2+ζ−e4),s=e4ζp24ρ3a2,t=1+s+s(s+2)3,u=ρ(t+1+1t),v=u2+e4ζ,w=e2u+v−ζ2v,κ=1+e2u+v+w2+wu+v.

##### The application of Ferrari's solution

A number of techniques and algorithms are available but the most accurate, according to Zhu,[13] is the following procedure established by Heikkinen,[14] as cited by Zhu. This overlaps with above. It is assumed that geodetic parameters {a,b,e} are known

a=6378137.0 m. Earth Equatorial Radiusb=6356752.3142 m. Earth Polar Radiuse2=a2−b2a2e'2=a2−b2b2p=X2+Y2F=54b2Z2G=p2+(1−e2)Z2−e2(a2−b2)c=e4Fp2G3s=1+c+c2+2c3k=s+1+1sP=F3k2G2Q=1+2e4Pr0=−Pe2p1+Q+12a2(1+1Q)−P(1−e2)Z2Q(1+Q)−12Pp2U=(p−e2r0)2+Z2V=(p−e2r0)2+(1−e2)Z2z0=b2ZaVh=U(1−b2aV)ϕ=arctan⁡[Z+e'2z0p]λ=arctan2⁡[Y,X]

Note: arctan2[Y, X] is the four-quadrant inverse tangent function.

#### Power series

For small e2 the power series

κ=∑i≥0αie2i

starts with

α0=1;α1=aZ2+p2;α2=aZ2Z2+p2+2a2p22(Z2+p2)2.

### Geodetic to/from ENU coordinates

To convert from geodetic coordinates to local tangent plane (ENU) coordinates is a two-stage process:

1. Convert geodetic coordinates to ECEF coordinates
2. Convert ECEF coordinates to local ENU coordinates

#### From ECEF to ENU

To transform from ECEF coordinates to the local coordinates we need a local reference point. Typically, this might be the location of a radar. If a radar is located at {Xr,Yr,Zr} and an aircraft at {Xp,Yp,Zp}, then the vector pointing from the radar to the aircraft in the ENU frame is

[xyz]=[−sin⁡λrcos⁡λr0−sin⁡ϕrcos⁡λr−sin⁡ϕrsin⁡λrcos⁡ϕrcos⁡ϕrcos⁡λrcos⁡ϕrsin⁡λrsin⁡ϕr][Xp−XrYp−YrZp−Zr]

Note:  ϕ is the geodetic latitude; the geocentric latitude is inappropriate for representing vertical direction for the local tangent plane and must be converted if necessary.

#### From ENU to ECEF

This is just the inversion of the ECEF to ENU transformation so

[XpYpZp]=[−sin⁡λr−sin⁡ϕrcos⁡λrcos⁡ϕrcos⁡λrcos⁡λr−sin⁡ϕrsin⁡λrcos⁡ϕrsin⁡λr0cos⁡ϕrsin⁡ϕr][xyz]+[XrYrZr]

### Conversion across map projections

Conversion of coordinates and map positions among different map projections reference to the same datum may be accomplished either through direct translation formulas from one projection to another, or by first converting from a projection A to an intermediate coordinate system, such as ECEF, then converting from ECEF to projection B. The formulas involved can be complex and in some cases, such as in the ECEF to geodetic conversion above, the conversion has no closed-form solution and approximate methods must be used. References such as the DMA Technical Manual 8358.1[15] and the USGS paper Map Projections: A Working Manual[16] contain formulas for conversion of map projections. It is common to use computer programs to perform coordinate conversion tasks, such as with the DoD and NGA supported GEOTRANS program.[17]

## Datum transformations

The different possible paths for transforming geographic coordinates from datum A to datum B

Transformations among datums can be accomplished in a number of ways. There are transformations that directly convert geodetic coordinates from one datum to another. There are more indirect transforms that convert from geodetic coordinates to ECEF coordinates, transform the ECEF coordinates from one datum to another, then transform ECEF coordinates of the new datum back to geodetic coordinates. There are also grid-based transformations that directly transform from one (datum, map projection) pair to another (datum, map projection) pair.

### Helmert transformation

Main article: Helmert transformation

Use of the Helmert transform in the transformation from geodetic coordinates of datum A to geodetic coordinates of datum B occurs in the context of a three-step process:[18]

1. Convert from geodetic coordinates to ECEF coordinates for datum A
2. Apply the Helmert transform, with the appropriate A->B transform parameters, to transform from datum A ECEF coordinates to datum B ECEF coordinates
3. Convert from ECEF coordinates to geodetic coordinates for datum B

In terms of ECEF XYZ vectors, the Helmert transform has the form (position vector transformation convention and very small rotation angles simplification)[18]

[XBYBZB]=[cxcycz]+(1+s×10−6)[1−rzryrz1−rx−ryrx1][XAYAZA].

The Helmert transform is a seven-parameter transform with three translation (shift) parameters cx,cy,cz, three rotation parameters rx,ry,rz and one scaling (dilation) parameter s. The Helmert transform is an approximate method that is accurate when the transform parameters are small relative to the magnitudes of the ECEF vectors. Under these conditions, the transform is considered reversible.[19]

A fourteen-parameter Helmert transform, with linear time dependence for each parameter,[19]: 131-133 can be used to capture the time evolution of geographic coordinates dues to geomorphic processes, such as continental drift[20] and earthquakes.[21] This has been incorporated into software, such as the Horizontal Time Dependent Positioning (HTDP) tool from the U.S. NGS.[22]

### Molodensky-Badekas transformation

To eliminate the coupling between the rotations and translations of the Helmert transform, three additional parameters can be introduced to give a new XYZ center of rotation closer to coordinates being transformed. This ten-parameter model is called the Molodensky-Badekas transformation and should not be confused with the more basic Molodensky transform.[19]: 133-134

Like the Helmert transform, using the Molodensky-Badekas transform is a three-step process:

1. Convert from geodetic coordinates to ECEF coordinates for datum A
2. Apply the Molodensky-Badekas transform, with the appropriate A->B transform parameters, to transform from datum A ECEF coordinates to datum B ECEF coordinates
3. Convert from ECEF coordinates to geodetic coordinates for datum B

The transform has the form[23]

[XBYBZB]=[XAYAZA]+[ΔXAΔYAΔZA]+[1−rzryrz1−rx−ryrx1][XA−XA0YA−YA0ZA−ZA0]+ΔS[XA−XA0YA−YA0ZA−ZA0].

where (XA0,YA0,ZA0) is the origin for the rotation and scaling transforms and ΔS is the scaling factor.

The Molodensky-Badekas transform is used to transform local geodetic datums to a global geodetic datum, such as WGS 84. Unlike the Helmert transform, the Molodensky-Badekas transform is not reversible due to the rotational origin being associated with the original datum.[19]: 134

### Molodensky transformation

The Molodensky transformation converts directly between geodetic coordinate systems of different datums without the intermediate step of converting to geocentric coordinates (ECEF).[24] It requires the three shifts between the datum centers and the differences between the reference ellipsoid semi-major axes and flattening parameters.

The Molodensky transform is used by the National Geospatial-Intelligence Agency (NGA) in their standard TR8350.2 and the NGA supported GEOTRANS program.[25] The Molodensky method was popular before the advent of modern computers and the method is part of many geodetic programs.

### Grid-based method

Magnitude of shift in position between NAD27 and NAD83 datum as a function of location.

Grid-based transformations directly convert map coordinates from one (map-projection, geodetic datum) pair to map coordinates of another (map-projection, geodetic datum) pair. An example is the NADCON method for transforming from the North American Datum (NAD) 1927 to the NAD 1983 datum.[26] The High Accuracy Reference Network (HARN), a high accuracy version of the NADCON transforms, have an accuracy of approximately 5 centimeters. The National Transformation version 2 (NTv2) is a Canadian version of NADCON for transforming between NAD 1927 and NAD 1983. HARNs are also known as NAD 83/91 and High Precision Grid Networks (HPGN).[27] Subsequently, Australia and New Zealand adopted the NTv2 format to create grid-based methods for transforming among their own local datums.

Like the multiple regression equation transform, grid-based methods use a low-order interpolation method for converting map coordinates, but in two dimensions instead of three. The NOAA provides a software tool (as part of the NGS Geodetic Toolkit) for performing NADCON transformations.[28][29]

### Multiple regression equations

Datum transformations through the use of empirical multiple regression methods were created to achieve higher accuracy results over small geographic regions than the standard Molodensky transformations. MRE transforms are used to transform local datums over continent-sized or smaller regions to global datums, such as WGS 84.[30] The standard NIMA TM 8350.2, Appendix D,[31] lists MRE transforms from several local datums to WGS 84, with accuracies of about 2 meters.[32]

The MREs are a direct transformation of geodetic coordinates with no intermediate ECEF step. Geodetic coordinates ϕB,λB,hB in the new datum B are modeled as polynomials of up to the ninth degree in the geodetic coordinates ϕA,λA,hA of the original datum A. For instance, the change in ϕB could be parameterized as (with only up to quadratic terms shown)[30]: 9

Δϕ=a0+a1U+a2V+a3U2+a4UV+a5V2+⋯

where

ai, parameters fitted by multiple regression
U=K(ϕA−ϕm)V=K(λA−λm)
K, scale factor
ϕm,λm, origin of the datum, A.

with similar equations for Δλ and Δh. Given a sufficient number of (A,B) coordinate pairs for landmarks in both datums for good statistics, multiple regression methods are used to fit the parameters of these polynomials. The polynomials, along with the fitted coefficients, form the multiple regression equations.

## See also

* Gauss–Krüger coordinate system
* List of map projections
* Spatial reference system
* Topocentric coordinate system
* Universal polar stereographic coordinate system
* Universal Transverse Mercator coordinate system
* Geographical distance

## References

1. ↑ "Basic Geodesy Article 018: Conversions and Transformations". National Geospatial Intelligence Agency. http://earth-info.nga.mil/GandG/coordsys/geoarticles/pdfs/Article018_Conversions_and_Transformations.pdf.
2. ↑ "Coordinate transformer". Ordnance Survey Great Britain. http://www.ordnancesurvey.co.uk/gps/transformation.
3. ↑ B. Hofmann-Wellenhof; H. Lichtenegger; J. Collins (1997). GPS - theory and practice. Section 10.2.1. p. 282. ISBN 3-211-82839-7.
4. ↑ A guide to coordinate systems in Great Britain. This is available as a pdf document at "ordnancesurvey.co.uk". http://www.ordnancesurvey.co.uk/oswebsite/gps/information/coordinatesystemsinfo/guidecontents. Appendices B1, B2
5. ↑ Osborne, P (2008). The Mercator Projections Section 5.4
6. ↑ R. Burtch, A Comparison of Methods Used in Rectangular to Geodetic Coordinate Transformations.
7. ↑ Featherstone, W. E.; Claessens, S. J. (2008). "Closed-Form Transformation between Geodetic and Ellipsoidal Coordinates". Stud. Geophys. Geod. 52 (1): 1–18. doi:10.1007/s11200-008-0002-6. Bibcode: 2008StGG...52....1F.
8. ↑ Bowring, B. R. (1976). "Transformation from Spatial to Geographical Coordinates". Surv. Rev. 23 (181): 323–327. doi:10.1179/003962676791280626.
9. ↑ Fukushima, T. (1999). "Fast Transform from Geocentric to Geodetic Coordinates". J. Geod. 73 (11): 603–610. doi:10.1007/s001900050271. Bibcode: 1999JGeod..73..603F. (Appendix B)
10. ↑ Sudano, J. J. (1997). "An exact conversion from an earth-centered coordinate system to latitude, longitude and altitude". Proceedings of the IEEE 1997 National Aerospace and Electronics Conference. NAECON 1997. 2. pp. 646–650. doi:10.1109/NAECON.1997.622711. ISBN 0-7803-3725-5.
11. ↑ Vermeille, H., H. (2002). "Direct Transformation from Geocentric to Geodetic Coordinates". J. Geod. 76 (8): 451–454. doi:10.1007/s00190-002-0273-6.
12. ↑ Gonzalez-Vega, Laureano; PoloBlanco, Irene (2009). "A symbolic analysis of Vermeille and Borkowski polynomials for transforming 3D Cartesian to geodetic coordinates". J. Geod. 83 (11): 1071–1081. doi:10.1007/s00190-009-0325-2. Bibcode: 2009JGeod..83.1071G.
13. ↑ Zhu, J. (1994). "Conversion of Earth-centered Earth-fixed coordinates to geodetic coordinates". IEEE Transactions on Aerospace and Electronic Systems 30 (3): 957–961. doi:10.1109/7.303772. Bibcode: 1994ITAES..30..957Z.
14. ↑ Heikkinen, M. (1982). "Geschlossene formeln zur berechnung räumlicher geodätischer koordinaten aus rechtwinkligen koordinaten." (in de). Z. Vermess. 107: 207–211.
15. ↑ "TM8358.2: The Universal Grids: Universal Transverse Mercator (UTM) and Universal Polar Stereographic (UPS)". National Geospatial-Intelligence Agency. http://earth-info.nga.mil/GandG/publications/tm8358.2/TM8358_2.pdf.
16. ↑ Snyder, John P. (1987). Map Projections: A Working Manual. USGS Professional Paper: 1395. https://pubs.er.usgs.gov/publication/pp1395. Retrieved 2017-08-28.
17. ↑ "MSP GEOTRANS 3.3 (Geographic Translator)". NGA: Coordinate Systems Analysis Branch. http://earth-info.nga.mil/GandG/geotrans/.
18. ↑ 18.0 18.1 "Equations Used for Datum Transformations". Land Information New Zealand (LINZ). http://www.linz.govt.nz/geodetic/conversion-coordinates/geodetic-datum-conversion/datum-transformation-equations/index.aspx.
19. ↑ 19.0 19.1 19.2 19.3 "Geomatics Guidance Note Number 7, part 2 Coordinate Conversions and Transformations including Formulas". International Association of Oil and Gas Producers (OGP). http://info.ogp.org.uk/geodesy/guides/docs/G7-2.pdf.
20. ↑ Bolstad, Paul (2012). GIS Fundamentals, 4th Edition. Atlas books. p. 93. ISBN 978-0-9717647-3-6. http://www.paulbolstad.net/4thedition/samplechaps/GISFundChap3.pdf.
21. ↑ "Addendum to NIMA TR 8350.2: Implementation of the World Geodetic System 1984 (WGS 84) Reference Frame G1150". National Geospatial-Intelligence Agency. http://gis-lab.info/docs/nima-tr8350.2-addendum.pdf.
22. ↑ "HTDP - Horizontal Time-Dependent Positioning". U.S. National Geodetic Survey (NGS). https://www.ngs.noaa.gov/TOOLS/Htdp/Htdp.shtml.
23. ↑ "Molodensky-Badekas (7+3) Transformations". National Geospatial Intelligence Agency (NGA). http://earth-info.nga.mil/GandG/coordsys/datums/molodensky.html.
24. ↑ "ArcGIS Help 10.1: Equation-based methods". ESRI. http://resources.arcgis.com/en/help/main/10.1/index.html#//003r00000012000000.
25. ↑ "Datum Transformations". National Geospatial-Intelligence Agency. http://earth-info.nga.mil/GandG/coordsys/datums/index.html.
26. ↑ "ArcGIS Help 10.1: Grid-based methods". ESRI. http://resources.arcgis.com/en/help/main/10.1/index.html#//003r00000013000000.
27. ↑ "NADCON/HARN Datum ShiftMethod". bluemarblegeo.com. http://www.bluemarblegeo.com/knowledgebase/geocalc/classdef/datumshift/datumshifts/nadcon.html.
28. ↑ "NADCON - Version 4.2". NOAA. http://www.ngs.noaa.gov/PC_PROD/NADCON/.
29. ↑ Mulcare, Donald M.. "NGS Toolkit, Part 8: The National Geodetic Survey NADCON Tool". Professional Surveyor Magazine. http://www.profsurv.com/magazine/article.aspx?i=1193.
30. ↑ 30.0 30.1 ﻿User's Handbook on Datum Transformations Involving WGS 84﻿ (Report). Special Publication No. 60 (3rd ed.). Monaco: International Hydrographic Bureau. August 2008. https://www.iho.int/iho_pubs/standard/S60_Ed3Eng.pdf. Retrieved 2017-01-10.
31. ↑ "DEPARTMENT OF DEFENSE WORLD GEODETIC SYSTEM 1984 Its Definition and Relationships with Local Geodetic Systems". National Imagery and Mapping Agency (NIMA). http://earth-info.nga.mil/GandG/publications/tr8350.2/wgs84fin.pdf.
32. ↑ Taylor, Chuck. "High-Accuracy Datum Transformations". http://home.hiwaay.net/~taylorc/bookshelf/math-science/geodesy/datum/transform/high-accuracy/.

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Geographic coordinate conversion. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Earth:Geographic_coordinate_conversion&oldid=4300777"