Skip to content

Commit

Permalink
Exclude the node shared with the roundabout
Browse files Browse the repository at this point in the history
Ways connecting at the roundabout do not necessarily need a oneway tag. This matches the behavior of the line above
  • Loading branch information
Famlam authored and frodrigo committed May 9, 2024
1 parent b9c1a5c commit d7ae72b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysers/analyser_osmosis_roundabout_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7ae72b

Please sign in to comment.