Geometry · 3 min read
Simplifying lines and polygons without wrecking them
By the RICE team · Published 14 October 2026
A municipal boundary digitised from a 1:10 000 survey can carry tens of thousands of vertices. On a web map at national scale nobody can see them, but every browser still has to download and draw them. Simplification removes the points that do not change the shape you can see — if you choose the tolerance well.
How Douglas–Peucker works
The most widely used method was published by David Douglas and Thomas Peucker in 1973. For each line or polygon ring:
- Draw a straight line between the first and last points.
- Find the point that lies farthest from that line.
- If it is closer than the tolerance, drop every point in between — the straight line is good enough.
- Otherwise keep it, split the line there, and repeat on both halves.
The result is a subset of the original vertices: nothing is moved, only removed. Every surviving point is exactly where it was surveyed, which matters if the data has legal weight.
Choosing a tolerance
The tolerance is a distance. Choose it from the scale the data will be seen at, not by trial and error. A useful rule of thumb is that a line can move about half a millimetre on paper without anyone noticing:
| Display scale | Half a millimetre on the ground | Sensible tolerance |
|---|---|---|
| 1:5 000 | 2.5 m | 1–2 m |
| 1:50 000 | 25 m | 10–25 m |
| 1:250 000 | 125 m | 50–100 m |
| 1:1 000 000 | 500 m | 200–500 m |
RICE asks for the tolerance in metres and converts it for you, so the same number means the same thing whether the layer is in degrees or a projected system. Tolerances in degrees are a trap: 0.001° is about 110 m north–south but much less east–west once you move away from the equator.
What goes wrong
Gaps and slivers between neighbours. Simplification treats each polygon on its own. Two farms that share a fence line will each have that fence simplified slightly differently, opening thin gaps or overlaps. For layers where shared boundaries matter — cadastre, wards, census areas — use a topology-aware tool, or keep the tolerance well below the smallest feature you care about.
Small shapes collapse. A polygon smaller than the tolerance can be reduced to a triangle or to nothing. RICE keeps a minimum valid ring of four positions rather than producing an empty shape, but a 5 m building simplified at 50 m will still look like a spike. Filter small features out first, or simplify at a smaller tolerance.
Self-intersections. A narrow peninsula simplified too hard can fold back across itself, producing an invalid polygon that some software refuses to draw. If a simplified layer fails validation, reduce the tolerance.
Spikes in lines. Douglas–Peucker keeps the farthest point, so a single bad GPS fix becomes a permanent spike. Clean outliers before simplifying, not after.
Alternatives
The Visvalingam–Whyatt method (1993) removes points based on the area of the triangle each one forms with its neighbours. It tends to produce smoother, more natural-looking coastlines, while Douglas–Peucker preserves sharp corners better. For engineered features — roads, parcels, pipelines — Douglas–Peucker is usually the better choice.
A sensible workflow
- Decide the smallest scale the layer will be shown at.
- Pick a tolerance from the table above.
- Simplify, then compare vertex counts — a 70–90% reduction is common for survey-grade boundaries with no visible change.
- Overlay the result on the original at the target scale and check shared edges.
- Keep the original. Simplified data is for display, not for measurement.
RICE’s Simplify & Clip tool shows live vertex counts before and after, keeps every geometry type unchanged, and verifies the output before you download it.
Set a tolerance in metres and watch the vertex count drop — in your browser, verified before download.
Open the toolWritten and maintained by the RICE team at LocalID IQ Pty Ltd. Questions or corrections: info@rice.org.za. About RICE.
