fix: limit junction pavement to arm crossings
This commit is contained in:
1 parent
8882754b23
commit
7ca57a68e6
3 files changed
+9
-37
No files matched your search
@@ -40,7 +40,11 @@ for (const [name, nodeIds] of Object.entries({
|
||||
geometry.diagnostics.some((item) => item.rule === 'complex-junction-pavement-region-disconnected'),
|
||||
false,
|
||||
);
|
||||
for (const stripe of geometry.crosswalks.features.filter((feature) => feature.properties.cluster_id === name))
|
||||
// The region owns road-arm crossings. The island-hypotenuse crossing is a
|
||||
// pedestrian facility above the road layer and does not expand pavement.
|
||||
for (const stripe of geometry.crosswalks.features.filter(
|
||||
(feature) => feature.properties.cluster_id === name && feature.properties.kind === 'complex-crosswalk',
|
||||
))
|
||||
assert.ok(
|
||||
multiArea(clipping.difference(stripe.geometry.coordinates, pavement.geometry.coordinates)) < 1e-10,
|
||||
`${name} ${stripe.properties.native_id} must lie on the unified pavement`,
|
||||
|
||||
Reference in new issue
Block a user