What the numbers refer to

The seven parameters, and what each one does

A datum transformation is published as three metres, three arcseconds and one part per million, in three different units — which hides the fact that all seven are the same size of thing. Converted to ground displacement, the scale term beats two of the translations.

Assumes What a coordinate refers to.

A datum transformation arrives as a row in a table: three translations in metres, three rotations in arcseconds, one scale change in parts per million. Seven numbers, three units, and an implicit ranking — the translations are hundreds, the rotations are fractions of one, so the translations are what matters and the rest is polish.

That reading is wrong, and it is wrong by a factor of thirty.

OSGB36 to WGS84, one parameter at a time. Each bar is how far the mark at 2.0° west, 54.5° north moves under one of the seven parameters with the other six set to zero. seven of the seven are not zero for OSGB36. The units hide the comparison: one arcsecond of rotation moves this point 30.8 metres and one part per million of scale moves it 6.36 metres, so OSGB36's scale term contributes 130 metres — more than one of its three translations.
Fig. 1 Each of the seven parameters of the OSGB36 transformation applied on its own, with the other six set to zero, and the result expressed as how far the mark moves on the ground. The scale term contributes more than two of the three translations. Its published value is −20.4894, which looks like nothing.

The transformation

The Helmert transformation — a similarity transformation, in the general vocabulary — relates two Cartesian frames. Not two sets of latitudes and longitudes: the conversion to Cartesian coordinates has to happen first, on the source ellipsoid, and the conversion back has to happen afterwards, on the target one. Everything in this essay happens in between.

Given a point (X,Y,Z)(X, Y, Z) in the source frame:

(XYZ)=(txtytz)+(1+s)(1rzryrz1rxryrx1)(XYZ)\begin{pmatrix} X' \\ Y' \\ Z' \end{pmatrix} = \begin{pmatrix} t_x \\ t_y \\ t_z \end{pmatrix} + (1 + s)\begin{pmatrix} 1 & -r_z & r_y \\ r_z & 1 & -r_x \\ -r_y & r_x & 1 \end{pmatrix}\begin{pmatrix} X \\ Y \\ Z \end{pmatrix}

The rotation matrix is written to first order in the three angles, which is exact enough by a wide margin: the angles are of order a microradian, so the neglected second-order terms are tenths of a millimetre on the Earth’s radius. That linearisation is not a shortcut taken for convenience here — it is how the parameters are defined and published.

Seven degrees of freedom, and the seven divide into two groups that mean different things.

What each group means

The three translations are the placement. They say where the source ellipsoid’s centre sits relative to the target’s. For a datum realised before satellites, that is several hundred metres, because there was no way to find the geocentre and no reason to try. OSGB36’s translations are 446, −125 and 542 metres; the vector’s length is 715 metres, which is how far the Airy ellipsoid sits from the centre of the Earth.

The three rotations and the scale are the realisation. They are not a statement about the ellipsoid at all. They come out of the fit between two sets of marker coordinates, and they absorb the systematic part of the difference between two networks — one observed with theodolites over eighty years, one observed from orbit. A rotation of 0.84 arcseconds does not mean the old surveyors had their axes crooked; it means the accumulated twist in the triangulation, spread over the whole country, came out looking like a rotation to the fit.

That distinction is why the second group cannot be dismissed as noise. It is small in its own units because arcseconds and parts per million are small units.

What was computed, and how

The figure above is produced by a single technique: take the transformation, zero six of its seven parameters, apply it to a point, and measure how far the point moved. No approximation and no linearisation beyond the one already in the definition.

The per-unit numbers are the useful ones, because they let the seven be compared before the published values are even looked at. At a point in northern Britain:

  • one metre of translation moves the mark 1.00 metre, by definition;
  • one arcsecond of rotation moves it 18 to 31 metres, depending on which axis, because the lever arm is a substantial fraction of the Earth’s radius;
  • one part per million of scale moves it 6.36 metres, because the point is 6.36 million metres from the origin.

So the three units are related by roughly 1:25:61 : 25 : 6. An arcsecond is worth twenty-five metres and a part per million is worth six. Once that is in hand, the published row reads completely differently: OSGB36’s −20.489 ppm of scale is a 130-metre effect, larger than its 125-metre tyt_y, and its 0.842 arcseconds about the ZZ axis is a 15-metre effect, which is a hundred times a survey tolerance.

ED50 to WGS84, one parameter at a time. Each bar is how far the mark at 10.0° east, 48.0° north moves under one of the seven parameters with the other six set to zero. three of the seven are not zero for ED50. The units hide the comparison: one arcsecond of rotation moves this point 30.7 metres and one part per million of scale moves it 6.37 metres, so ED50's scale term contributes 0 metres — more than no of its three translations.
Fig. 2 The same decomposition for ED50, at a point in central Europe. Four of the seven parameters are exactly zero: the published transformation is three translations and nothing else. That is not a simpler datum — it is a coarser fit, and the omitted terms have gone into the residual rather than away.

The comparison between the two figures is the reason this generator takes the datum as a parameter rather than drawing one. ED50’s published transformation is a pure translation. That looks like a cleaner relationship and it is the opposite: a three-parameter fit has four fewer degrees of freedom with which to match two networks, so whatever the rotations and scale would have absorbed is still there, sitting in the residual, unmodelled.

The route the parameters take, and a shortcut around it

The seven parameters act on Cartesian coordinates, and almost nobody has Cartesian coordinates. So the full journey from one datum’s latitude and longitude to another’s has four steps, and only the second involves the parameters at all:

  1. geographic to Cartesian, on the source ellipsoid;
  2. the seven-parameter transformation;
  3. Cartesian to geographic, on the target ellipsoid;
  4. and, if a grid coordinate is wanted, the projection — which is everything the rest of this collection is about, and is a separate question entirely.

Step 3 is the awkward one. There is no closed form for latitude given a Cartesian triple on an ellipsoid: the standard route iterates, converging in a handful of passes, and a good starting value comes from the parametric latitude. That was expensive on the machines this work was first mechanised for, and the response was a family of formulae that skip Cartesian coordinates altogether and apply the shift directly in latitude, longitude and height.

Molodensky against the exact route, ED50. The distance on the ground between where each shortcut puts the transformed point and where the exact Cartesian route puts it, at 0 metres of ellipsoidal height, on a logarithmic scale. The full formulae stay within 1.0 centimetres across every latitude drawn; the abridged form, which replaces two ellipsoid-difference coefficients with one combined term, is worst at 16 centimetres — a factor of 16. The abridged curve dips near 45°, where the combined coefficient happens to equal the pair it replaces.
Fig. 3 How far Molodensky’s direct formulae land from the exact Cartesian route, across latitude, for ED50 — a three-parameter transformation, which is the only kind these formulae can represent. The full form stays within centimetres; the abridged form, which replaces two ellipsoid-difference coefficients with one combined term, is worse by more than an order of magnitude.

The shortcut is a first-order expansion, and being able to say of what, and how much is dropped is the whole difference between a shortcut and a mistake. Molodensky’s shortcut does that arithmetic. What matters here is a limit on the shortcut rather than on the route. Molodensky’s formulae carry the three translations and nothing else — no rotations, no scale — so they can only be used on a datum whose transformation is a pure translation. Applied to OSGB36, whose other four parameters are worth 150 metres, they are out by tens of metres and give no sign of it.

What the seven actually do to a coordinate

The same coordinate on three datums. One pair of numbers — 2.0° east, 51.0° north — read as a coordinate on OSGB36, ED50 and on WGS84, and plotted where each reading puts the mark on the ground. The spread runs to 144 metres. The numbers are identical; only what they refer to differs.
Fig. 4 The same pair of numbers read on OSGB36, ED50 and WGS84, at a point on the French coast, with the full seven-parameter conversion applied. The two national datums disagree with the global one in different directions and by different amounts, which is what makes a file with no datum on it unrecoverable rather than merely uncertain.

Two readings of the same numbers, on two national datums, and they land on opposite sides of the global answer. This is worth stating because it is the reason a datum cannot be guessed after the fact. If every old datum were offset the same way, a file of undocumented coordinates could be repaired by pattern-matching against the coastline. They are not, because each was fitted to its own ground, so an undocumented file is a file whose error is unknown in both size and direction.

The same point in datum shifts dwarf projection errors is made against the other half of the pipeline: the projection error at this scale is metres and the datum error is hundreds of metres, and the projection is the part that gets argued about.

The inverse is not the negated forward map

Here is the part that has to be got right and usually is not.

The obvious inverse of the transformation is to negate all seven parameters and apply the same formula. It is wrong, and requiring the round trip to close is what catches it.

The forward map does two things in a fixed order: it scales and rotates the point, and then it translates. Undoing that requires the translation to come off first, before the scale is divided out. Negating the parameters and re-applying the forward formula does them the other way round, and since scaling and translating do not commute, the result is off by the product of the scale change and the translation — about 2×105×7152 \times 10^{-5} \times 715 metres, or 1.3 centimetres.

A centimetre and a third is a wonderful size of error. It is small enough to look like rounding in any single conversion, and large enough to be a legal problem in a land registry, where boundaries are recorded to the centimetre and disputes are conducted in millimetres. It survives every test that only checks the forward direction against published values, because the forward direction is right.

The check that finds it is one line of intent: convert a point, convert it back, and require it to land where it started to well under a millimetre. Which is the general form of a habit worth having — an operation with an inverse should be tested against its inverse, not against a table.

Where the model stops

Three limits, and the third is the interesting one.

Seven parameters are a rigid body plus a size. A similarity transformation can translate, rotate and scale. It cannot bend. So it can carry the entire difference between two definitions exactly — different ellipsoid, different placement — and it cannot carry any part of the difference between two realisations that is not a rigid motion.

The residual when the network has no strain in it. Each arrow is where the best-fitting seven-parameter transformation leaves a marker, over 36 markers laid out as a grid across OSGB36's ground. The network is rigid here, so the fit is exact and the residuals are 0.29 millimetres — the second-order term the linear fit drops, and nothing else.
Fig. 5 The residual left by a seven-parameter fit when the two networks really are related by a rigid motion and a scale. It is 0.29 millimetres, and that number is identifiable: it is the second-order term the linear model drops, being the product of the scale change and the rotations. Nothing else is left.

That figure is the control, and it is worth pausing on because it is what makes every other residual in this collection a measurement. With no network strain the fit recovers the transformation to a third of a millimetre — and that third of a millimetre is not slop, it is exactly the term the linearised rotation matrix drops. When the same machinery reports 1.6 metres for a strained network, the 1.6 metres is not the method’s error. The method’s error is known and is three orders of magnitude smaller.

The parameters depend on which stations were used. Two authorities can publish different seven-parameter sets for the same pair of datums and both be right. This is not sloppiness; it is what happens when seven parameters are fitted to something with more structure than seven parameters, and where a fit leaves residuals measures the mechanism directly.

What 4 parts per million of network strain leaves behind. Each arrow is where the best-fitting seven-parameter transformation leaves a marker, over 28 markers laid out as a wedge across OSGB36's ground. The RMS residual is 1.42 metres and the worst is 3.08 metres. Seven parameters span the constant and linear parts of a displacement field; this one is quadratic, so no choice of the seven can reach it. The arrows are drawn 27× life size.
Fig. 6 The same fit over a lopsided set of markers, which is what a country is. The residual is smaller than over a symmetric layout — not because the fit is better, but because part of the strain has been absorbed into the parameters, which have moved away from the truth to make room for it.

The transformation says nothing about accuracy. A published parameter set has a stated fit region and a stated RMS, and using it outside that region produces numbers with no error bar rather than large errors. The formula does not know where it is. This is the same failure the site records for regional distortion measures: a quantity computed over one region and quoted over another is not a worse measurement, it is a different one.

The generalisation

The lesson generalises past geodesy and it is about units rather than about datums.

A quantity published in a small unit looks small. Parts per million, arcseconds, basis points, decibels — each of them exists because the quantity it measures is usually a tiny fraction of something, and each of them therefore invites the reader to treat a value near one as negligible. The correction is always the same: convert every term into the units of the thing being predicted, and compare there.

This site does the same conversion everywhere else for the same reason. Scale distortion is the third failure converts an areal factor and an angular deformation into a common currency before ranking them; the trade-off is two lines puts conformality and equal-area on one axis so that “both at once” can be seen to be impossible rather than merely hard.

In this case the thing being predicted is a distance on the ground, so all seven parameters become metres, and the ranking changes. In a financial model the thing being predicted is money, and a basis point on a large notional is not small. In an error budget for an instrument the thing being predicted is the measurement, and a part per million of scale on a ten-kilometre baseline is a centimetre.

The failure mode has a shape worth recognising: a term is dropped because its published number is small, and the number is small because of the unit it is published in. The scale parameter here is the standing example. It reads as −20, next to translations that read as 500, and it does more work than either of the smaller two.

Reading a parameter set critically

Four things are worth checking before a published row is used, and none of them requires any tooling.

Which direction is it? A set labelled “to WGS84” and one labelled “from WGS84” differ by more than a sign, as the previous section shows. Applying one in place of the other is wrong by twice the translation, which for OSGB36 is 1.4 kilometres — an error large enough to be obvious, which is the only good thing about it.

Which rotation convention? The two in circulation — often called position vector and coordinate frame — differ by the sign of all three rotations. Applying a set from one under software written for the other is wrong by twice the rotation term, which for OSGB36 is thirty metres and for ED50 is nothing at all, because its rotations are zero. That is the dangerous case: the convention error is invisible on the datums where it does not matter and silent on the ones where it does.

What region was it fitted over? A national parameter set is a fit over that nation’s stations. Nothing in the arithmetic stops it being applied on the other side of the world, and nothing in the output indicates that it has been.

What residual came with it? A parameter set published without an RMS is a claim with no error bar. The residual is not a footnote to the fit; it is the part of the answer the fit could not express, and its size is what says whether seven parameters were enough.

The seven at a different point

NAD27 to WGS84, one parameter at a time. Each bar is how far the mark at 120.0° west, 47.0° north moves under one of the seven parameters with the other six set to zero. three of the seven are not zero for NAD27. The units hide the comparison: one arcsecond of rotation moves this point 24.9 metres and one part per million of scale moves it 6.37 metres, so NAD27's scale term contributes 0 metres — more than no of its three translations.
Fig. 7 NAD27 evaluated in the Pacific north-west rather than in the mid-west. The same three published translations, a different lever arm, and a different ranking among them — which is the reason a transformation’s parameters cannot be read as a single displacement.

Comparing this with the mid-west figure above makes the point that no single number describes a datum shift. The parameters are fixed; what they do depends on where the point is, because a translation in a geocentric frame resolves differently into local east, north and up at every latitude and longitude.

What changing the datum alone does to a coordinate. The distance on the ground between a point as read on its national datum and the same numbers read on WGS84, computed through the published seven-parameter transformation. The shifts run from 49 to 166 metres. For comparison, the scale error a UTM zone introduces at its edge is under a metre per kilometre — so the datum, which is usually left unstated, dominates the projection, which is usually argued about.
Fig. 8 The consequence across a spread of ground: the shift’s size and direction both vary. Seven fixed numbers, and a displacement field.

Who found it, and when

Friedrich Robert Helmert set out the general problem — relating two coordinate frames from observations at common points — in the 1880s, as part of the work that made geodesy a subject about adjustment rather than about instruments. The seven-parameter similarity transformation carries his name because he wrote down the estimation problem, not because he invented the algebra, which is older and belongs to mechanics.

The transformation became routine only when there were two frames worth relating. Before satellite geodesy there was no global frame, so there was nothing for a national datum to be transformed to — the question of where the ellipsoid’s centre actually sat was unanswerable and therefore not asked. The parameter sets that every geographic information system now carries date from the 1960s onwards, and the ones for older datums are still being revised, because the fit depends on which stations are included and new stations keep being observed.

The ordering of the operations — scale and rotate, then translate — is a convention, and one that has bitten people. Some published parameter sets use the opposite rotation sign convention, so applying a set from one authority with software written to another’s convention produces an error of exactly twice the rotation term. At OSGB36’s rotations that is thirty metres, in a conversion that otherwise looks completely correct.

Thirty metres is worth dwelling on for a moment: it is larger than the difference between many pairs of datums, so a sign error in the rotations can move a coordinate further than the transformation itself was correcting for, and it does so without producing anything that looks wrong.

The general lesson is the one the ordering convention illustrates: a transformation is a sequence of operations, and a sequence is not recoverable from the numbers it operates with.

Where this goes next

The seven parameters are a fit, and this essay has taken the fit’s output as given. Two essays follow from asking where it came from.

A datum is fitted to a region asks what the ellipsoid was fitted to and what fitting locally actually buys, which turns out to be a removed bias rather than a removed error. And where a fit leaves residuals asks what the fit could not reach, which is the reason a national mapping agency ships a table rather than a formula.

What this makes readable

Essays that name this one as a prerequisite.

Named alongside this one

Essays reaching for the same objects. Nobody chose these; they are what the concept index makes visible.

What links here

The 8 essays that link to this one and share the most of its objects, of 25 that link here.

The objects this essay names

Each one links to every other essay that touches it.

DatumED50EllipsoidHelmert transformationInverse problemOSGB36RealisationRotationScale factorSimilarity transformationToleranceWGS84