From d7ae72b48fb19e3c39a7275bcdf818c6da6e904e Mon Sep 17 00:00:00 2001 From: Famlam Date: Thu, 9 May 2024 12:26:49 +0200 Subject: [PATCH] Exclude the node shared with the roundabout Ways connecting at the roundabout do not necessarily need a oneway tag. This matches the behavior of the line above --- analysers/analyser_osmosis_roundabout_level.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysers/analyser_osmosis_roundabout_level.py b/analysers/analyser_osmosis_roundabout_level.py index 18c4cb2e4..bafc71910 100644 --- a/analysers/analyser_osmosis_roundabout_level.py +++ b/analysers/analyser_osmosis_roundabout_level.py @@ -160,7 +160,7 @@ ways.id AS a_id, CASE WHEN ways.nodes[1] = ANY (roundabout.nodes) THEN ARRAY[ways.nodes[2], ways.nodes[3], ways.nodes[4]] - WHEN ways.nodes[array_length(ways.nodes,1)] = ANY (roundabout.nodes) THEN ARRAY[ways.nodes[array_length(ways.nodes,1)], ways.nodes[array_length(ways.nodes,1)-1], ways.nodes[array_length(ways.nodes,1)-2]] + WHEN ways.nodes[array_length(ways.nodes,1)] = ANY (roundabout.nodes) THEN ARRAY[ways.nodes[array_length(ways.nodes,1)-1], ways.nodes[array_length(ways.nodes,1)-2], ways.nodes[array_length(ways.nodes,1)-3]] END AS n_ids, ways.is_oneway FROM