Course · ← 0007 Model the System · 0009 Georeferencing → · engine layer
Lesson 0008 · ~14 minutes
Lesson 0005 said "wrong CRS fails silently" and moved on. This is the part underneath: ellipsoid, datum, projection, and the transformation step everyone forgets until parcels sit a hundred metres from the road.
A spatial reference is not one thing. It is a stack, and every layer of it can be wrong independently.
EPSG:4326. Projected (PCS): the ellipsoid flattened onto a plane, x/y in metres, e.g. a UTM zone or a national grid.2Projection is not transformation. Reprojecting within one datum — geographic to projected, or between projections — is exact mathematics, lossless and uncontroversial. Moving between datums is a geographic (datum) transformation: an empirical, approximate, region-specific calculation with its own accuracy.4 Software will happily skip it and draw your data anyway — shifted by anything from a few metres to a few hundred.
Most countries' cadastral data predates GPS. It sits on a local datum, computed from a national triangulation network, chosen decades ago because it fitted that country well. Your imagery and your field GNSS are on WGS 84. Those are different datums, and the offset between them is systematic — every parcel wrong by the same amount in the same direction, which is precisely the error the human eye does not catch.
Systematic error is invisible on screen: everything looks internally consistent, parcels fit their neighbours, the map "works". It only surfaces when your layer meets someone else's — a road centreline, a utility corridor, a neighbouring district captured by a different contractor.
Three defensive habits:
Declare, never assume. Data with no declared CRS is not data yet. If a contractor delivers a shapefile without a .prj, the deliverable is incomplete — ask, do not guess.
Name the transformation explicitly. Not just "we converted to WGS 84" but which transformation, with which parameters. Multiple transformations exist between the same pair of datums, at different accuracies for different regions. This belongs in your metadata and your technical proposal.
Test against control. Take a handful of points whose coordinates are known in both systems — a survey mark, a road junction, a building corner — and round-trip them. Systematic offset shows up immediately and nowhere else.
| Where | CRS | Why |
|---|---|---|
| Cadastral storage | National projected grid | Metres, minimal local distortion, areas and distances mean something |
| Exchange / API | WGS 84 (EPSG:4326) | Universal, GeoJSON's default, no datum ambiguity |
| Web basemap tiles | Web Mercator (3857) | What tile pyramids use — display only |
| Field GNSS capture | WGS 84, transformed on ingest | Transform once, at a known point in the pipeline, and record that you did |
In PostGIS this is enforced by the column: geometry(Polygon, 32637) refuses anything in the wrong SRID rather than silently accepting it. Take that constraint. The alternative — a mixed-SRID table — is a class of bug that survives for years.
Does this operation stay within one datum (pure projection) or cross datums (needs a transformation)?
EPSG Guidance Note 373-07-1 — Understanding the EPSG Geodetic Parameter Dataset (IOGP). The authoritative account of what a CRS definition contains and how transformations are published:
iogp.org — Guidance Note 373-07-1 (PDF)
Lighter, and good for orienting first: Esri's "Coordinate Systems: What's the Difference?" and, for a programmer's framing, Geographic Coordinate Systems 101.