feat(db): do not consider usage=tourism in sql/scripts/railway.sql

This commit is contained in:
dancingCycle 2023-06-12 14:30:35 +02:00
parent dae24ddbd8
commit 03fca0d536
1 changed files with 3 additions and 3 deletions

View File

@ -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