From 03fca0d53647fab157d87789832205f97e5e66c3 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Mon, 12 Jun 2023 14:30:35 +0200 Subject: [PATCH] feat(db): do not consider usage=tourism in sql/scripts/railway.sql --- db/sql/scripts/railway.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/sql/scripts/railway.sql b/db/sql/scripts/railway.sql index 86cfb7e..e3fe7e1 100644 --- a/db/sql/scripts/railway.sql +++ b/db/sql/scripts/railway.sql @@ -30,7 +30,7 @@ SELECT foo.id, FROM planet_osm_point p WHERE ( p.railway = 'halt' OR p.railway = 'station') - AND p.usage != 'tourism' + AND ( p.usage IS NULL OR p.usage NOT LIKE '%tourism%') AND p.proposed is null --- damit keine geplanten Gebäude etc übernommen werden UNION @@ -48,7 +48,7 @@ SELECT foo.id, FROM planet_osm_polygon p WHERE ( p.railway = 'halt' OR p.railway = 'station') - AND p.usage != 'tourism' + AND ( p.usage IS NULL OR p.usage NOT LIKE '%tourism%') AND p.proposed is null AND p.osm_id > 0 -- Ausschluss der Relationen @@ -75,7 +75,7 @@ SELECT foo.id, FROM planet_osm_polygon p WHERE ( p.railway = 'halt' OR p.railway = 'station') - AND p.usage != 'tourism' + AND ( p.usage IS NULL OR p.usage NOT LIKE '%tourism%') AND p.proposed is null AND p.osm_id < 0 -- Relationen ) as rel