Contents of this page may be automatically translated, we take no responsibility for the accuracy of the translation. Feel free to contact our customer support centre if you have any questions.

A coordinate transformation is a conversion of coordinates from one coordinate system to another. Depending on the application, different transformation methods are used.

## Background

Coordinate transformations are made, for example, to be able to present different sets of data together if the different sets of data are not already reported in the same coordinate system.

The term coordinate transformation can be used generally for all functions where you transfer given point coordinates in a coordinate system (from-system) to a new set of coordinates in another coordinate system (to-system).

## Definition based transformations

Definition based transformations are used for transformation within a reference system.

In this type of transformation relationship, the transformation parameters are determined as constants, fixed. To distinguish this type of transformation, there are a few different, special names; coordinate conversion.

### Examples where definition based transformations are used

- Conversion of coordinate formats, for example from geocentric SWEREF 99 to latitude, longitude and height above the ellipsoid in SWEREF 99:

(X, Y, Z) Û ( j , l , h). - Map projections, for example from latitude and longitude in SWEREF 99 to SWEREF 99 TM:

(j, l ) Û (N, E). - Changing the central meridian, for example from SWEREF 99 12 00 to SWEREF 99 TM:

(N, E) Û (j, l) Û (N, E).

## Empirical transformations

Empirical transformations are used for transformation between two reference systems.

In empirical transformations, the parameters are developed through some type of fitting, for example unitary transformation, Helmert transformation or direct projection (projection fitting). The parameters are thus determined by fitting a number of measured fitting points.

### Examples where empirical transformations are used

- Datum change, for example from geocentric RT 90 to geocentric SWEREF 99:

(X, Y, Z) Û (X, Y, Z). - Planar transformation, for example from RT 90 5 gon V 0: -15 to a local coordinate system:

(x, y) Û (x, y). - Direct projection, for example from latitude and longitude in SWEREF 99 to a local coordinate system (RIX 95 transformations are usually of this type):

(j, l) Û (x, y).

## Estimation

Estimation means determining the numerical values of the parameters of a transformation formula, based on a set of points, the fitting points, which have known coordinates in both the from- and to-systems. Different transformation methods require different numbers of fitting points to provide an unambiguous determination of the parameters.

Transformation method | Number of fitting points |
---|---|

Translation | 1 |

Unitary | 2 |

Helmert, two-dimensional | 2 |

Affin | 3 |

Since the coordinates of the fitting points have been obtained by some measuring procedure, they are not free of errors. To minimize the effect of the errors in the coordinates on the calculation of the parameters, more than the number of common points required is normally used. It is also desirable that the points are well spread over the area to be transformed. When more points than those required are used, the parameters are calculated using the least squares method, thereby minimizing the contradictions between the coordinates of the fitting points in the from-system and the corresponding coordinates obtained by transforming the coordinates in the to-system. The approach also provides an opportunity to estimate how much the transformation contributes to the error in the transformed coordinates.

## Different transformation methods

### Translation

Translation is an empirical transformation method that is defined by a displacement of the origin by two constants; one in the x-direction and one in the y-direction.

The parameters x_{0 } and y_{0 } can be determined by an adjustment procedure.

In the special case where translation is used to compensate for a local origin, however, the parameters are by definition.

#### Formulas

The formulas for a translation are:

x_{t } (P) = x_{0} + x_{f} (P)

y_{t} (P) = y_{0 } + y_{f} (P)

### Unitary transformation

Unitary transformation is a type of uniformity transformation with three parameters. It is an empirical transformation method, where the parameters are determined by an fitting procedure.

The parameters are:

- Two translations, x
_{0 }and y_{0 } - A rotation, α

The transformation method is used in cases where the scale is to be unchanged between the from- and to-systems Unchanged scale is in some cases a condition where measured lengths and areas must be unchanged.

#### Formulas

The formulas for unitary transformation are:

x_{t } (P) = x_{0 } + x_{f } (P) · cos α - y_{f } (P) · sin α

y_{t } (P) = y_{0 } + x_{f } (P) · sin α + y_{f } (P) · cos α

### Helmert transformation, 2D

Helmert transformation is defined by four parameters and is the most common planar transformation method in geodesy.

The method takes into account that the systems do not have coincident origins, that the coordinate axes are not parallel and that the systems do not have the same scale:

- Two translations, x
_{0 }and y_{0 } - A rotation, α
- A scale factor, m

This means that the shape of objects does not change during a Helmert transformation.The method is an empirical transformation method and the parameters are thus determined by an adjustment procedure.

The figure gives an idea of what the relationship can look like in principle.

#### Formulas

Denote the coordinates in the system we transform from with (x_{f }, y_{f }) and the coordinates of the system we transform into (x_{t }, y_{t }). The following relation then applies to any point P:

x_{t } (P) = x_{0 } + x_{f } (P) · m · cos α - y_{f } (P) · m · sin α

y_{t } (P) = y_{0 } + x_{f } (P) · m · sin α + y_{f } (P) · m · cos α

The formulas above consider the shift of the origin (x_{0 }, y_{0}), that the coordinate axes of the two coordinate systems are not parallel and the rotation α. To compensate for the difference in scale, the coordinates in the from system are multiplied by the scale factor m.

The equations are modified by

a = m · cos α

b = m · sin α

and we get

x_{t } (P) = x_{0 } + a · x_{f} (P) - b · y_{f } (P)

y_{t } (P) = y_{0 } + b · x_{f} (P) + a · y_{f } (P)

We usually call the quantities x_{0 }, y_{0 }, a and b for the Helmert parameters. As mentioned in the introduction, the numerical values of the parameters are determined by fitting.

### Helmert transformation, 3D

Three-dimensional Helmert transformation is defined by seven parameters and is therefore also called 7-parameter transformation.

This type of transformation is used in conjunction with Cartesian three-dimensional coordinate systems, which are usually located geocentrically (or near geocentrically), that is, the origin coincides with the earth's physical center of gravity.

Three-dimensional fitting formulas are calculated from empirical data in a similar way as with horizontal adjustments, but with three coordinates (X, Y, Z) given for each fitting point in the from- and to-systems.

#### Three-dimensional similarity transformation

(7-parameter, Bursa-Wolf)

A uniformity transformation is defined by:

- 3 translations along each axis: DX, DY, DZ
- 3 rotations; one around each coordinate axis: w
_{X }, w_{Y }, w_{Z } - A scale change, commonly expressed as a scale correction in ppm: d

In matrix form, the formula is:

Where R is the rotation matrix according to:

The strict inverse of the same formula is set up according to:

Where R ^{ -1 } is the inverse matrix of R. For rotation matrices, R ^{ -1 } = R ^{ T }, that is, the inverse is equal to the transponate of the complete rotation matrix R. (The transponate of a matrix is obtained by reversing rows and columns in the matrix.)

Note that the 7-parameter formula can be set up in slightly different ways, in terms of the order of the operations and how signs of rotations and scale factor should be interpreted. Therefore, when entering parameters in a program you should always make sure that the program applies the same conventions as the program used for estimating the parameters.

As a minimum, the entry should be verified using a checkpoint with known from- and to- coordinates.

### Affine transformation

Affine transformation can be used when there is a risk that the scales in the x and y directions are different, for example when digitizing from paper maps that have changed shape.

Affine transformation is a deforming transformation method. The method is an empirical transformation method and the parameters are thus determined by an fitting procedure. The parameters included in the method are:

- Two translations, x
_{0 }and y_{0 } - One rotation, a
- Two scale factors, m
_{x }and m_{y } - Lack of rightness, affinity, b

#### Formulas

The coordinates in the system we transform from are denoted by (x_{f }, y_{f }) and the coordinates in the system we transform to by (x_{t }, y_{t }). The formulas can then be set up as:

x_{t } (P) = x_{0 } + x_{f } (P) · m_{x } · cos α - y_{f } (P) · m_{y } · sin (α + β)

y_{t } (P) = y_{0 } + x_{f } (P) · m_{x } · sin α + y_{f } (P) · m_{y } · cos (α + β)

The formulas above take into account the translation of the origin (x_{0 }, y_{0 }), that the coordinate axes of the two coordinate systems are not parallel, the rotation a and the shear b. To compensate for the difference in scale, the coordinates in the from-system are multiplied by the scale factors m_{x } and m_{y }.

The equations are modified by

a = m_{x } · cos α

b = -m_{y } · sin (α + β)

c = m_{x } · sin α

d = m_{y } · cos (α + β)

to get

x_{t } (P) = x_{0 } + a · x_{f } (P) + b · yf (P)

y_{t } (P) = y_{0 } + c · x_{f } (P) + d · y_{f } (P)

The quantities x_{0 }, y_{0 }, a, b, c and d are usually called the parameters of the affine transformation. As mentioned in the introduction, the numerical values of the parameters are determined by fitting.

### X, Y, Z to latitude, longitude, ellipsoid height

The transformation between geocentric and geodetic coordinates takes place with a definition based transformation.

There are several different approaches to transforming between geocentric coordinates (X, Y, Z) and geodetic coordinates (latitude, longitude and height above the ellipsoid).

In the formula description below, a closed approximate formula is used, but iterative procedures are also common. The difference between the closed formula and an iterative procedure can amount to a maximum of one tenth of a millimetre for common applications in Sweden (height <20,000 m).

The formulas used to convert between the different coordinate types are given, together with a numerical example, in the document Transformation between geocentric Cartesian coordinates and geodetic coordinates (pdf, in Swedish, new window).