Skip to content

Commit

Permalink
Also support natural=water + water=fjord|harbour in analyser_osmosis_…
Browse files Browse the repository at this point in the history
…water osm-fr#448
  • Loading branch information
frodrigo committed Jun 21, 2019
1 parent 523bf4e commit 76a57a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions analysers/analyser_osmosis_water.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
tags->'natural' = 'water' AND
(
NOT tags?'water' OR
tags->'water' IN ('lake', 'reservoir', 'river', 'canal', 'lagoon', 'pond')
tags->'water' IN ('lake', 'reservoir', 'river', 'canal', 'lagoon', 'pond', 'fjord', 'harbour')
)
) OR (
tags?'natural' AND
Expand Down Expand Up @@ -80,7 +80,7 @@
relations.tags->'natural' = 'water' AND
(
NOT relations.tags?'water' OR
relations.tags->'water' IN ('lake', 'reservoir', 'river', 'canal', 'lagoon', 'pond')
relations.tags->'water' IN ('lake', 'reservoir', 'river', 'canal', 'lagoon', 'pond', 'fjord', 'harbour')
)
) OR (
relations.tags?'natural' AND
Expand Down Expand Up @@ -141,7 +141,7 @@
LEFT JOIN water ON
(objects.type != 'W' OR water.id != objects.id) AND
objects.bbox && water.linestring AND
ST_DistanceSphere(objects.geom, water.linestring) < 30
ST_Distance_Sphere(objects.geom, water.linestring) < 30
WHERE
water IS NULL
"""
Expand Down

0 comments on commit 76a57a2

Please sign in to comment.