One word, several meanings
GIS software uses the word transformation for jobs that are quite different. Knowing which one you need saves time and avoids hidden errors.
| Kind | What changes | What it needs | Example |
|---|---|---|---|
| Reprojection | Coordinates move from one projection to another on the same datum | Two coordinate systems | Latitude and longitude to UTM |
| Datum transformation | Coordinates move from one datum to another | Transformation parameters or a grid file | An old local datum to WGS 84 |
| Geometric (image) transformation | An image or map is fitted to known points | Control points | Georeferencing a scan |
| Resampling | New cell values are worked out after a raster is moved | A choice of method | Warping a raster to a new CRS |
A fifth meaning, the change of values and not of position, is covered at the end.
Reprojection
A map projection is a formula that turns locations on a curved surface into flat coordinates. Reprojection applies one formula backward and another forward. When both coordinate systems use the same datum, the maths is exact and needs no control points. Converting a CSV of latitude and longitude, which is EPSG:4326, to UTM zone 43N, which is EPSG:32643, is a reprojection. Setting a CRS on a layer is not a reprojection. It only changes the label, as the note on coordinate systems explains.
Datum transformation
A datum is the reference model of the Earth that coordinates are measured against. Two datums place the same point at slightly different coordinates. A datum transformation corrects for that. It is done with a set of parameters, a seven-parameter shift in three dimensions, or with a grid file that stores the shift for each area.
These transformations are approximate, and several may exist for the same pair of datums, each with a stated accuracy and area of use. The registry of coordinate systems lists them as operations with codes. If your software offers a choice, pick the one whose area covers your data and whose accuracy suits your work, and record it. The shift can be a few metres, and for old local datums it can reach hundreds of metres. A layer that sits in the wrong place after reprojection often has a datum problem.
Geometric transformations
Georeferencing fits an image to control points. The transformation is the rule for that fit.
| Type | What it does | Parameters | Fewest points |
|---|---|---|---|
| Linear | Shifts and scales, without rotation | 4 | 2 |
| Helmert | Shifts, rotates and scales evenly, so shapes are kept | 4 | 2 |
| Affine, or polynomial order 1 | Adds shear and unequal scale, so straight lines stay straight | 6 | 3 |
| Polynomial order 2 | Curved fit | 12 | 6 |
| Polynomial order 3 | More flexible curved fit | 20 | 10 |
| Projective | Corrects the perspective of a flat object photographed at an angle | 8 | 4 |
| Thin plate spline | Stretches the image locally to pass through every point | Many | Many, well spread |
The number of control points must be at least the number of coefficients per axis, and more is better, because extra points show how good the fit is. A higher order can match the points and still distort the image between them. Start with the simplest transformation that fits. For satellite images that are already corrected for terrain, a first order polynomial is usually enough. A scanned map with paper distortion may need more.
Judging the error
Each control point has a residual, which is the distance between where the transformation puts it and where it should be. The root mean square error, or RMSE, summarises them. A point with a much larger residual than the others is usually a mistake. A thin plate spline passes through every point, so its residuals are always zero, and a low RMSE tells you nothing about the places between points. Check the result against points that were not used in the fit, and spread control points over the whole image.
The note on georeferencing gives more detail on residuals.
Resampling
When a raster is moved to a new grid, the new cells do not line up with the old ones, so new values must be worked out. The method matters.
| Method | How it works | Suits | Watch for |
|---|---|---|---|
| Nearest neighbour | Takes the value of the closest cell | Classes, such as land cover codes | Blocky edges, and some cells repeated or skipped |
| Bilinear | Averages the four nearest cells by distance | Continuous values, such as elevation or temperature | Smoothing, and new values that were not in the data |
| Cubic convolution | Fits a curve through the sixteen nearest cells | Imagery that you will look at | Sharper, but values can overshoot |
Never use bilinear or cubic on class codes. An average of class 2 and class 4 is class 3, which is a different class. Resample once and from the original data, because each resampling blurs the raster.
Value transformations
Some operations in image processing are also called transformations, but they change cell values and not position. Principal component analysis, the tasselled cap and band ratios are examples. The chapter on spectral indices covers the ratios.
Choosing and recording
- Ask what needs to change: the projection, the datum, the position of an image or the grid.
- Pick the matching kind from the first table.
- For an image, choose a transformation type, check the residuals and test against independent points.
- For a raster, choose a resampling method that matches the data type.
- Record what you did: the source and target coordinate systems, the datum transformation if any, the transformation type, the RMSE and the resampling method.
Example: the QGIS series
In the tutorials, a CSV of coordinates is reprojected from EPSG:4326 to EPSG:32643, which is exact because the datum is the same. An unreferenced Landsat image is georeferenced to a Sentinel-2 image with ten control points and a first order polynomial, then checked against the residuals. A digital elevation model is warped to UTM with bilinear resampling, which suits heights, and a land cover raster would use nearest neighbour.
Common mistakes
- Treating a change of label as a reprojection.
- Ignoring the datum when data comes from an old or local source.
- Using a high-order polynomial because it gives a low RMSE.
- Trusting a thin plate spline because its residuals are zero.
- Using bilinear or cubic resampling on classes.
- Resampling the same raster several times.
- Not recording the transformation that was used.
Glossary
| Term | Meaning |
|---|---|
| Reprojection | Converting coordinates between projections on one datum |
| Datum transformation | Converting coordinates between datums |
| Control point | A location with known coordinates in both systems |
| Residual | The distance between a control point's fitted and true position |
| RMSE | The root mean square of the residuals |
| Resampling | Working out new cell values when a raster changes grid |
Practise it
The tutorial Georeferencing tries transformation types and reads the residuals. The tutorial CSV, joins, reprojection and Field Calculator reprojects a layer, and Coordinate reference systems shows how to measure under different CRSs.
Test yourself
1. What is the difference between reprojection and a datum transformation?
Reprojection changes the projection on the same datum, and the maths is exact. A datum transformation changes the datum and is approximate, using parameters or a grid.
2. Why can a high-order polynomial be risky?
It can fit the control points closely and still distort the image between them, so a low RMSE can give false confidence.
3. Which resampling method should you use for a land cover raster?
Nearest neighbour, because it keeps the original class codes. Averaging methods would create classes that do not exist.

