Skip to content

Commit

Permalink
Don't warn about polygons for (self-intersecting) ways that are no po…
Browse files Browse the repository at this point in the history
…lygons

Fixes #1935 and #1995
For `attraction=roller_coaster` vs `roller_coaster=track`, see #1960
  • Loading branch information
Famlam authored and frodrigo committed Aug 25, 2023
1 parent e1c1140 commit cb5894e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analysers/analyser_osmosis_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
{0}ways
WHERE
NOT is_polygon AND
NOT (tags?'attraction' AND tags->'attraction' = 'roller_coaster') AND
NOT (tags?'roller_coaster' AND tags->'roller_coaster' = 'track') AND -- permit self-intersecting ways
NOT (tags?'highway' AND tags->'highway' = 'raceway') AND -- permit self-intersecting ways
nodes[1] = nodes[array_length(nodes,1)] AND
ST_NumPoints(linestring) > 3 AND
ST_IsClosed(linestring) AND
Expand Down

0 comments on commit cb5894e

Please sign in to comment.