**Note**: This document is available in PDF.

## Introduction

Coordinate conversion between Universal Transverse Mercator (UTM) and geographic coordinates is a very common problem when working with Geographic Information Systems.

This document is an English translation of a publication that is in Spanish [1] [2]. I use that method for coding my own program to convert coordinates.

There are some procedures to perform the conversion between geographic coordinates and UTM.

- UTM Projection tables, from Servicio Geográfico del Ejército de España (SGE), Sección de Geodesia (1976): Proyección Universal Tranversa Mercator, SGE, Madrid. Vol. I: Sistemas conformes. Proyección U.T.M. Cuadrículas y Sistemas de referencia, (220 pp.); Vol. II: Tablas, (331 pp.).
- US Army direct formulas for transformation, published in 1973 (USGS Bolletin No. 1532).
- Coticchia-Surace formulas, from “Bolletino di Geodesia a Science Affini” No. 1.

This document is using the third method which is the easiest to code in a computer program. This procedure gets centimeter precision in the conversion if using enough decimal places, so floating point or double variables should be used.

## Conversion from geographic coordinates to UTM

First we get a pair of geodesic geographic coordinates and the basic data of Hayford ellipsoid (as an example but you can use other ellipsoid), such as semi-major axis and semi-minor axis .

(1)

With this data we can start the operations.

### Previous calculations

#### Ellipsoid geometry

We start to calculate the eccentricity, second eccentricity, polar radius of curvature and flattening. Eccentricity and second eccentricity are given by:

(2)

(3)

The square of the second eccentricity is a very useful number in the operations so make sure to save it somewhere. The polar radius of curvature and flattening are given by:

(4)

(5)

Actually the flattening and eccentricity aren’t necessary for the Coticchia-Surace equations, but they are frequent parameters of the ellipsoid that sometimes are given as a pair of data and ; and sometimes as and . Under those circumstances one can calculate if the corresponding equations are known.

#### Latitude and longitude

First, sexagesimal degrees (or degrees, minutes and seconds represented as , and have to be converted to decimal notation.

(6)

Once we have latitude and longitude in decimal notation, they have to be converted to radians. The operation is as follow

(7)

Next, the longitude sign should be determined. This is as simple as

(8)

West and East are the longitude referenced from the Greenwich meridian.

#### Time zone

Once we have longitude and latitude ready, the time zone or UTM zone where the coordinates are located can be obtained.

(9)

Where represent only the integer part of the obtained value.

Next step is to get the central meridian of such time zone.

(10)

Following we have to calculate the distance between the longitude of our original coordinates and the central meridian. Its important to notice that this operations have to be done in radians, so the central meridian just obtained have to be converted first. The original longitude is already in radians.

(11)

### Coticchia–Surace equations

In this section the Coticchia-Surace equations for the direct problem of converting geodesic geographic coordinates to UTM are presented.

#### Parameter calculation

A set of serial parameters should be calculated. There are a lot of equations but they are sequential and easy to code.

(12)

(13)

(14)

(15)

where is the scale factor for the UTM projection.

(16)

(17)

(18)

(19)

(20)

(21)

(22)

(23)

(24)

(25)

### Final calculation of coordinates

Once we have all the parameters the final coordinates in UTM is obtained as follow

(26)

For the solution is important to remember if the latitude of the geodesic geographic coordinates belongs to the southern hemisphere, we should add the value of to the result. In the case of northern hemisphere we have nothing to add.

(27)

## Conversion from UTM to geographic coordinates

We are going to start by using a pair of UTM coordinates and their respective zone. Also we are going to need the basic data of Hayford ellipsoid (as an example but you can use another ellipsoid), such as semi-major axis and semi-minor axis .

(28)

With this data we can start the operations. The ellipsoid geometry calculations are exactly the same as the previous section, the parameter calculations are very similar.

### Previous calculations

#### Ellipsoid geometry

We start to calculate the eccentricity, second eccentricity, polar radius of curvature and flattening. Eccentricity and second eccentricity are given by:

(29)

(30)

The square of the second eccentricity is a very useful number in the operations so make sure to save it somewhere. The polar radius of curvature and flattening are given by:

(31)

(32)

Actually the flattening and eccentricity aren’t necessary for the Coticchia-Surace equations, but they are frequent parameters of the ellipsoid that sometimes are given as a pair of data and ; and sometimes as . Under those circumstances one can calculate if the corresponding equations are known.

### Previous calculations of (X, Y) coordinates

We start by modifying the X coordinate

(33)

For the Y coordinate we should modify it only when it is on the southern hemisphere

(34)

### Central meridian of the time zone

The UTM zone of the X,Y coordinates to convert should be known as another parameter in the conversion. This operation is similar to the inverse conversion

(35)

### Coticchia-Surace equations

#### Parameter calculations

Most of the parameters are calculated in a similar way or even equal to the previous problem

(36)

(37)

(38)

(39)

(40)

(41)

(42)

(43)

(44)

(45)

(46)

(47)

(48)

(49)

(50)

(51)

(52)

(53)

(54)

### Final calculation of coordinates

The longitude composition is very simple. We have to take care of performing this operation in degrees expressed in decimal notation, so has to be divided by and multiplied by . is already in decimal degrees

(55)

The latitude calculation is a little more complicated:

(56)

Now we have to convert the latitude from radians to degrees expressed in decimal notation

(57)

Once we have latitude and longitude in degrees expressed in decimal notation, we have to convert the result to sexagesimal notation in degrees, minutes and seconds . For the degrees we operate both latitude and longitude as follow

(58)

where is the integer part of the value. Then minutes

(59)

again is the integer part of the value. Finally, seconds

(60)

If longitude result with negative sign then the value its at west of Greenwich meridian.

## References

- Aprende a convertir coordenadas geográficas en UTM y UTM en geográficas.
- Aprende a convertir coordenadas geográficas en UTM y UTM en geográficas (Parte II).

Published: 5/1/2018, Minor fixes: 23/8/2024