Linear referencing

Locating things along a route rather than on the earth: measures and M values, postmiles and equations, dynamic segmentation, and moving events between networks.

A road realigned around a curve, with the coordinate record left beside the old line and the postmile still finding the bridge. the road moves; the register does notthe 1994 linestored coordinatepostmile 49.644552A measure is defined against the route register, not against any particular map of it

A road is a line, and the things on it are located by how far along they are: postmile 49.64, milepost 233.7, chainage 12 400. It reads like a legacy convention and it is not. An asset inventory outlives every digitisation of the centreline it was drawn against, so a measure against a route register keeps finding the right bridge long after the coordinates have moved.

The cost is an arithmetic of its own. Measures are not lengths — a route is calibrated, and treating a postmile as a fraction of the line misplaces events by tens of feet. Numbering restarts at county lines, jumps where a bypass shortened the road, and repeats under a prefix where a curve was realigned, so the measure alone is never the key. The M ordinate that the standard provides for all this is the least supported part of the geometry model: reprojection drops it and most drivers refuse to write it.

The concepts below fix the vocabulary — route, measure, event, calibration, equation, conflation; the how-to guides read a real state highway network with its postmiles intact and locate, place, cut, overlay, aggregate and transfer events against it; and the fixes are the five ways the numbers come out wrong.

Learning paths run through this topic too — see the end of this page.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

Show every how-to guide in this topic

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Linear referencing sits in Analysis. Every topic on the site is listed on the topics index.