osmose-backend icon indicating copy to clipboard operation
osmose-backend copied to clipboard

Exclude self-intersecting (P-shaped) cycleways from "Unconnected cycleway" check

Open Famlam opened this issue 2 months ago • 0 comments

Exclude cycleways that return to itself (in a P-shaped way). This fixes an incorrect warning about unconnected cycleways at the self-intersection point.

Technically enabled for all highways, but I guess the number of ways with level < 3 that self-intersect is negligible.

By using this instead of ST_IsSimple we make sure we still find cycleways that aren't connected on the "other end" too

Examples: It excludes: https://www.openstreetmap.org/node/2664365547 https://www.openstreetmap.org/node/11145455749 https://www.openstreetmap.org/way/1177282697 https://www.openstreetmap.org/way/1103314448 https://www.openstreetmap.org/way/768700323 https://www.openstreetmap.org/way/929852565

But keeps one of the endpoints in: https://www.openstreetmap.org/way/1207065702 https://www.openstreetmap.org/way/1138709520 https://www.openstreetmap.org/way/1207065702

Famlam avatar May 27 '24 22:05 Famlam