Skip to content

Commit

Permalink
Fix bug in exclusion of small water bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
quaelnix authored and ulteq committed Jul 27, 2023
1 parent 03aab82 commit a610255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/scripts/mapcreation/brouter.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ FROM
polygons p
WHERE
-- do not consider small surfaces
st_area (p.way) > 1000
st_area (st_transform (p.way, 4326)::geography) > 1000
AND p.natural IN ('water')
OR (p.landuse IN ('forest', 'allotments', 'flowerbed', 'orchard', 'vineyard', 'recreation_ground', 'village_green')
OR p.leisure IN ('garden', 'park', 'nature_reserve'));
Expand All @@ -93,7 +93,7 @@ FROM
polygons p
WHERE
-- do not consider small surfaces
st_area (p.way) > 1000
st_area (st_transform (p.way, 4326)::geography) > 1000
AND p.natural IN ('water')
OR (p.landuse IN ('forest', 'allotments', 'flowerbed', 'orchard', 'vineyard', 'recreation_ground', 'village_green')
OR p.leisure IN ('garden', 'park', 'nature_reserve'));
Expand Down

0 comments on commit a610255

Please sign in to comment.