From a610255529680aec8fe5c429555362662d3d16eb Mon Sep 17 00:00:00 2001 From: quaelnix <122357328+quaelnix@users.noreply.github.com> Date: Thu, 27 Jul 2023 18:03:36 +0200 Subject: [PATCH] Fix bug in exclusion of small water bodies --- misc/scripts/mapcreation/brouter.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/scripts/mapcreation/brouter.sql b/misc/scripts/mapcreation/brouter.sql index 14aa658..5c37a1a 100644 --- a/misc/scripts/mapcreation/brouter.sql +++ b/misc/scripts/mapcreation/brouter.sql @@ -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')); @@ -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'));