Skip to content

Commit

Permalink
Merge pull request #601 from quaelnix/fix-st-area
Browse files Browse the repository at this point in the history
Fix bug in exclusion of small water bodies
  • Loading branch information
afischerdev authored Aug 30, 2023
2 parents 3b650a5 + a610255 commit 88ec15f
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 @@ -76,7 +76,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 @@ -92,7 +92,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 88ec15f

Please sign in to comment.