From a0a6e2d438281c3d4e3f882b1b115cd8a86bfaa6 Mon Sep 17 00:00:00 2001 From: jirik Date: Fri, 22 Sep 2017 15:15:29 +0200 Subject: [PATCH] Show railway halts sooner --- layers/poi/layer.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/poi/layer.sql b/layers/poi/layer.sql index 99f9a0e1..c7a40bdd 100644 --- a/layers/poi/layer.sql +++ b/layers/poi/layer.sql @@ -19,7 +19,8 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de SELECT * FROM osm_poi_point WHERE geometry && bbox AND zoom_level BETWEEN 12 AND 13 - AND (subclass='station' AND mapping_key = 'railway') + AND ((subclass='station' AND mapping_key = 'railway') + OR subclass='halt') UNION ALL -- etldoc: osm_poi_point -> layer_poi:z14_ SELECT * FROM osm_poi_point @@ -32,7 +33,8 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de SELECT * FROM osm_poi_polygon WHERE geometry && bbox AND zoom_level BETWEEN 12 AND 13 - AND (subclass='station' AND mapping_key = 'railway') + AND ((subclass='station' AND mapping_key = 'railway') + OR subclass='halt') UNION ALL -- etldoc: osm_poi_polygon -> layer_poi:z14_ SELECT * FROM osm_poi_polygon