From 225a0f6fd9f5c09fc7023be9b79dbed445c8a771 Mon Sep 17 00:00:00 2001 From: nlehuby Date: Fri, 8 Dec 2017 11:27:36 +0100 Subject: [PATCH] add religion as subclass for place_of_worship --- layers/poi/layer.sql | 2 ++ layers/poi/mapping.yaml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/layers/poi/layer.sql b/layers/poi/layer.sql index c16fab1b..3e919e3b 100644 --- a/layers/poi/layer.sql +++ b/layers/poi/layer.sql @@ -12,6 +12,8 @@ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, name_de CASE WHEN subclass = 'information' THEN NULLIF(information, '') + WHEN subclass = 'place_of_worship' + THEN NULLIF(religion, '') ELSE subclass END AS subclass, agg_stop, diff --git a/layers/poi/mapping.yaml b/layers/poi/mapping.yaml index cdcd3750..93681455 100644 --- a/layers/poi/mapping.yaml +++ b/layers/poi/mapping.yaml @@ -336,6 +336,9 @@ tables: - name: uic_ref key: uic_ref type: string + - name: religion + key: religion + type: string mapping: aerialway: *poi_mapping_aerialway amenity: *poi_mapping_amenity @@ -386,6 +389,9 @@ tables: - name: uic_ref key: uic_ref type: string + - name: religion + key: religion + type: string mapping: aerialway: *poi_mapping_aerialway amenity: *poi_mapping_amenity