Skip to content

Commit

Permalink
Avoid duplicate issues from analyser_osmosis_roundabout_level osm-fr#560
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Jul 14, 2019
1 parent 3f1706d commit 67d2b81
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions analysers/analyser_osmosis_roundabout_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,19 @@
roundabout.id,
ST_AsText(way_locate(roundabout.linestring))
FROM (
SELECT
rid AS id
FROM
access
GROUP BY
rid,
nodes
HAVING
COUNT(*) > 1
SELECT DISTINCT ON (id)
id
FROM (
SELECT
rid AS id
FROM
access
GROUP BY
rid,
nodes
HAVING
COUNT(*) > 1
) AS t
) AS t
NATURAL JOIN roundabout
"""
Expand Down

0 comments on commit 67d2b81

Please sign in to comment.