Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Where exactly is this pixel?
A satellite image is only useful if each pixel can be placed on a map, and if the map’s numbers mean what you think. The Earth is not a sphere but a slightly squashed ellipsoid, continents drift a few centimetres a year, and any flat map stretches some distances. Engineers therefore choose a coordinate system for the job: latitude and longitude for storage, a local metric grid such as UTM for measuring, and a local east-north-up frame for a drone or robot. Images are tied to the map with control points or with the sensor’s orbit and a terrain model. The demo shows how much a flat grid stretches distances.
Precise georeferencing lets analysts stack images from different satellites and dates, overlay field boundaries, guide drones and send rescue teams to the right street.
- 1. The Earth's shape is best modelled as…
- 2. UTM divides the world into…
- 3. A flat map always…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Coordinate systems in practice
- Ellipsoid: WGS 84 has a = 6378137 m and 1/f = 298.257223563, so the polar radius is 6356752.3 m. GRS 80 is practically identical.
- Datum and plate motion: a datum ties the ellipsoid to the Earth. ITRF2020 is the global reference; WGS 84 is aligned with it to a few centimetres. Plate-fixed datums (NAD83, ETRS89, GDA2020) move with their continents, so they drift from ITRF by centimetres per year: ETRS89 by about 2.5 cm per year, now well over half a metre.
- Heights: GNSS gives ellipsoidal height h; maps use orthometric height H = h − N, where the geoid undulation N (EGM2008) ranges about ±100 m.
- ECEF and ENU: Earth-centred Cartesian coordinates (EPSG:4978) for orbits and GNSS; local east-north-up (or north-east-down) frames for drones and robots.
- EPSG codes: 4326 (WGS 84 latitude/longitude; the official axis order is latitude first), 3857 (Web Mercator), 326zz and 327zz (UTM zone zz north and south), 3035 (ETRS89 Lambert equal-area for Europe), 6933 (EASE-Grid 2.0, global equal-area).
- UTM: transverse Mercator in 60 zones of 6°, scale 0.9996 on the central meridian, false easting 500 km, false northing 10000 km in the south; 80°S to 84°N, with polar stereographic beyond. Norway and Svalbard have irregular zones. MGRS labels 100 km squares; Sentinel-2 tiles are 109.8 km squares on it; Landsat uses the WRS-2 path/row grid.
- Geotransform: GDAL’s six numbers map pixel (column, row) to map (X, Y): origin, pixel size and rotation terms, referring to the outer corner of the first pixel (pixel-is-area). Pixel-is-point metadata refers to its centre: half a pixel apart.
- Image geometry: satellite products are orthorectified with a sensor model (rigorous, or rational polynomial coefficients: about 80 coefficients of ratios of cubics) and a DEM (Copernicus DEM GLO-30, SRTM). Without a DEM, relief displacement r·h/H shifts elevated points away from nadir.
- Tools: PROJ, pyproj, GDAL and rasterio; GeographicLib (Karney 2013) for geodesics; arosics and similar tools for image-to-image co-registration.
- 1. EPSG:32633 is…
- 2. UTM's scale on the central meridian is…
- 3. Orthometric height equals…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.Placing pixels correctly
Exercise 1.
- Geodetic to ECEF and back.
- UTM zone and central meridian.
- ECEF to local east-north-up.
Practice.
- Measure distances and areas in a suitable projected CRS (UTM or an equal-area projection), or geodesically; never in degrees or Web Mercator.
- Reproject imagery once, to the analysis grid, with an appropriate resampler (nearest for classes, bilinear or cubic for reflectance) and an aligned pixel grid.
- Check axis order (EPSG:4326 is latitude–longitude officially; most software uses longitude–latitude) and the half-pixel convention when moving between tools.
- For time series, verify co-registration between dates and sensors; misregistration of a fraction of a pixel creates false change along edges.
- Record the datum and epoch for survey-grade work; centimetre-level GNSS data need plate-motion-aware transformations.
from pyproj import CRS, Transformer
utm = CRS.from_epsg(32632) # UTM zone 32N
to_utm = Transformer.from_crs("EPSG:4326", utm, always_xy=True)
E, N = to_utm.transform(9.19, 45.46) # lon, lat of Milan
import rasterio
from rasterio.warp import calculate_default_transform, reproject, Resampling
with rasterio.open("scene_wgs84.tif") as src:
T, w, h = calculate_default_transform(src.crs, utm, src.width, src.height, *src.bounds, resolution=10)- 1. Resample a land-cover map with…
- 2. Misregistration between dates causes…
- 3. Measure areas in…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
Geodetic to ECEF. With prime-vertical radius N = a/√(1 − e² sin²φ): X = (N + h) cos φ cos λ, Y = (N + h) cos φ sin λ, Z = (N(1 − e²) + h) sin φ. The inverse has no closed form that is both simple and exact; fixed-point iteration on φ converges in a few steps (Bowring’s method in one).
Transverse Mercator scale. TM is conformal: the scale k is the same in every direction at a point, and grows with distance x from the central meridian, approximately k ≈ k₀(1 + x²/2R²). UTM sets k₀ = 0.9996 so the scale is 1 on two lines about 180 km either side of the central meridian, below 1 between them and above 1 outside: at 45°N, −400 ppm on the meridian and about +288 ppm at the zone edge. Beyond the zone the error grows quadratically, which is why data crossing zones should be processed in one zone only if the extension is small.
Web Mercator scales by sec φ in all directions: ×1.41 at 45°, ×2 at 60°, and areas by sec² φ.
Georeferencing by control points. A polynomial of order p in pixel coordinates has (p + 1)(p + 2)/2 coefficients per map coordinate: 3, 6 and 10 for orders 1, 2 and 3. Least squares needs at least that many GCPs and, to average out noise, several times more. High-order terms extrapolate wildly outside the GCPs’ convex hull and cannot model local relief displacement, which needs a DEM.
- 1. Transverse Mercator is…
- 2. A second-order polynomial warp has how many coefficients per coordinate?
- 3. UTM's scale is exactly 1…
Level 4: Expert
★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.How large are projection distortions and control-point georeferencing errors in practice?
History.
- J. P. Snyder, Map projections: a working manual (USGS Professional Paper 1395, 1987).
- T. Vincenty, “Direct and inverse solutions of geodesics on the ellipsoid” (1975); C. F. F. Karney, “Algorithms for geodesics” (2013) and “Transverse Mercator with an accuracy of a few nanometers” (2011).
- B. Zitová and J. Flusser, “Image registration methods: a survey” (2003).
Exercise 2. Two parts.
- Part A: a 10 km east–west line at 45°N measured in ellipsoidal transverse Mercator (UTM scale) at 0, 1.5, 3 and 4.5° from the central meridian, in Web Mercator and in degrees × 111.32 km (with and without cos φ); truth is the ellipsoid chord with arc correction.
- Part B: a 5000 × 5000-pixel image at 10 m whose true pixel-to-map mapping is affine plus a smooth warp (up to about 30 m) plus a local terrain bump (relief displacement up to 15 m). Polynomials of order 1–3 are fitted to 8, 12, 25 or 60 GCPs with 5 m noise; RMSE on 1000 check points, median over 20 GCP layouts.
| line measured in | error (ppm) |
|---|---|
| UTM, on the central meridian | −399.9 |
| UTM, 1.5° from it | −228.0 |
| UTM, 3° (zone edge) | +287.6 |
| UTM, 4.5° (outside the zone) | +1147.2 |
| Web Mercator | +411845 |
| degrees × cos φ × 111.32 km | −1670 |
| check-point RMSE (m) | 8 GCPs | 12 | 25 | 60 |
|---|---|---|---|---|
| affine (order 1) | 7.62 | 5.26 | 4.65 | 4.08 |
| order 2 | 23.09 | 8.22 | 4.21 | 3.33 |
| order 3 | – | 42.55 | 7.04 | 3.93 |
- UTM is good to a few hundred ppm inside its zone (a few centimetres per 100 m), changing sign across the zone; 1.5° outside the zone the error quadruples.
- Web Mercator is unusable for measurement: 41% too long at 45°. Degrees with a cos φ factor are within 0.2%, fine for a quick check but not for engineering.
- The right model depends on the number of GCPs: with 8 GCPs the affine model was best and order 2 tripled the error by extrapolating; with 60, order 2 won and order 3 already fitted noise. No polynomial removed the terrain bump: the RMSE floor reflects relief, which needs orthorectification with a DEM.
- Seeds 1 and 2 (different GCP layouts): order 2 with 60 GCPs 3.46 and 3.38 m; affine with 8 GCPs 6.62 and 6.33 m; order 2 with 8 GCPs 17.83 and 13.91 m; order 3 with 12 GCPs 33.91 and 44.22 m. Part A is deterministic.
- Caveat: synthetic distortion; real imagery adds sensor attitude errors that rigorous or RPC models with a DEM handle far better than polynomials.
Coordinates in AI, robotics and aerospace
- Analysis-ready data cubes (Open Data Cube, Earth Engine, xarray with rioxarray) reproject everything to one grid so that models see aligned pixels; label rasters must use the same grid and resampling must suit the data type.
- Drones and robots fuse GNSS (ECEF or geodetic) with local ENU or NED navigation frames; RTK GNSS gives centimetre positions only if datum and epoch are handled consistently.
- Satellite ground segments georeference images from orbit and attitude data, then refine them against reference images (Sentinel-2 now uses a Global Reference Image) and DEMs.
- Learning for registration: deep matching networks (SuperPoint/SuperGlue, LoFTR style) find tie points between optical, SAR and map data where hand-crafted features fail.
References
- J. P. Snyder (1987). Map projections: a working manual. USGS Professional Paper 1395.
- T. Vincenty (1975). “Direct and inverse solutions of geodesics on the ellipsoid with application of nested equations.” Survey Review.
- C. F. F. Karney (2011). “Transverse Mercator with an accuracy of a few nanometers.” Journal of Geodesy.
- C. F. F. Karney (2013). “Algorithms for geodesics.” Journal of Geodesy.
- Z. Altamimi et al. (2023). “ITRF2020: an augmented reference frame refining the modeling of nonlinear station motions.” Journal of Geophysical Research: Solid Earth.
- N. K. Pavlis, S. A. Holmes, S. C. Kenyon and J. K. Factor (2012). “The development and evaluation of the Earth Gravitational Model 2008 (EGM2008).” Journal of Geophysical Research.
- B. Zitová and J. Flusser (2003). “Image registration methods: a survey.” Image and Vision Computing.
- C. V. Tao and Y. Hu (2001). “A comprehensive study of the rational function model for photogrammetric processing.” Photogrammetric Engineering and Remote Sensing.