From cd7265d22b8d6c5886cc7e0418faa9a1f83ccbb9 Mon Sep 17 00:00:00 2001 From: nesnoj Date: Tue, 17 Dec 2024 18:04:11 +0100 Subject: [PATCH] Extend OSM tags to identify residential buildings --- .../datasets/osm_buildings_streets/osm_buildings_filter.sql | 1 + .../osm_buildings_filter_residential.sql | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter.sql b/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter.sql index eef64dfd9..52e6f23df 100644 --- a/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter.sql +++ b/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter.sql @@ -22,6 +22,7 @@ CREATE TABLE openstreetmap.osm_buildings_filtered as or bld.building like 'semidetached_house' or bld.building like 'static_caravan' or bld.building like 'terrace' + or bld.building like 'terraced_house' or bld.building like 'commercial' or bld.building like 'industrial' or bld.building like 'kiosk' diff --git a/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter_residential.sql b/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter_residential.sql index e05379686..340e9fded 100644 --- a/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter_residential.sql +++ b/src/egon/data/datasets/osm_buildings_streets/osm_buildings_filter_residential.sql @@ -17,7 +17,10 @@ CREATE TABLE openstreetmap.osm_buildings_residential as or bld.building like 'farm' or bld.building like 'house' or bld.building like 'residential' - or bld.building like 'semidetached_house'; + or bld.building like 'semidetached_house' + or bld.building like 'terrace' + or bld.building like 'dormitory' + or bld.building like 'terraced_house'; ALTER TABLE openstreetmap.osm_buildings_residential ADD CONSTRAINT osm_buildings_residential_id_pkey PRIMARY KEY (id);