Skip to content

fix: keep small closed ways (roundabouts) that collapse when simplified (#315) - #955

Open
dktue wants to merge 1 commit into
systemed:masterfrom
dktue:fix/closed-way-simplify
Open

dktue wants to merge 1 commit into
systemed:masterfrom
dktue:fix/closed-way-simplify

Conversation

@dktue

@dktue dktue commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Douglas-Peucker on a closed linestring anchors on its first and last point, which are the same point, so a small ring (roundabout, small closed way) collapses to [p0, p0] and is dropped, or to an out-and-back spike [p0, b, p0]. With the OpenMapTiles config (transportation simplified below z13) roundabouts vanish at z10–12 and leave gaps in the road network.

If simplifying a closed way leaves fewer than 4 points, it is written unsimplified.

Monaco, roundabouts only (82 at z13), DP with the OpenMapTiles transportation settings:

zoom master patched
z12 77 82
z11 77 82
z10 74 79 (3 are smaller than one tile unit)

Visvalingam output is unchanged (it didn't lose them).

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant