feat(db): do not consider usage=tourism in sql/scripts/railway.sql
This commit is contained in:
parent
759039a181
commit
09ad3911ab
|
@ -30,6 +30,7 @@ SELECT foo.id,
|
||||||
FROM planet_osm_point p
|
FROM planet_osm_point p
|
||||||
WHERE
|
WHERE
|
||||||
( p.railway = 'halt' OR p.railway = 'station')
|
( p.railway = 'halt' OR p.railway = 'station')
|
||||||
|
AND p.usage != 'tourism'
|
||||||
AND p.proposed is null --- damit keine geplanten Gebäude etc übernommen werden
|
AND p.proposed is null --- damit keine geplanten Gebäude etc übernommen werden
|
||||||
|
|
||||||
UNION
|
UNION
|
||||||
|
@ -47,6 +48,7 @@ SELECT foo.id,
|
||||||
FROM planet_osm_polygon p
|
FROM planet_osm_polygon p
|
||||||
WHERE
|
WHERE
|
||||||
( p.railway = 'halt' OR p.railway = 'station')
|
( p.railway = 'halt' OR p.railway = 'station')
|
||||||
|
AND p.usage != 'tourism'
|
||||||
AND p.proposed is null
|
AND p.proposed is null
|
||||||
AND p.osm_id > 0 -- Ausschluss der Relationen
|
AND p.osm_id > 0 -- Ausschluss der Relationen
|
||||||
|
|
||||||
|
@ -73,6 +75,7 @@ SELECT foo.id,
|
||||||
FROM planet_osm_polygon p
|
FROM planet_osm_polygon p
|
||||||
WHERE
|
WHERE
|
||||||
( p.railway = 'halt' OR p.railway = 'station')
|
( p.railway = 'halt' OR p.railway = 'station')
|
||||||
|
AND p.usage != 'tourism'
|
||||||
AND p.proposed is null
|
AND p.proposed is null
|
||||||
AND p.osm_id < 0 -- Relationen
|
AND p.osm_id < 0 -- Relationen
|
||||||
) as rel
|
) as rel
|
||||||
|
|
Loading…
Reference in New Issue