From 29872804e6be33580ff122394fd068dcb2390f7b Mon Sep 17 00:00:00 2001 From: Michael Reichert Date: Thu, 14 Feb 2019 16:22:47 +0100 Subject: [PATCH] Update condition of index planet_osm_polygon_military This reflects changes to the SQL query of layer landuser-overlay introduced by commit 52085d3b6d60cfbe7f39fc44ae6c9345c89c1fd6 (pull request #3469). --- indexes.sql | 2 +- indexes.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indexes.sql b/indexes.sql index d14179c6c9..12b2de4bd2 100644 --- a/indexes.sql +++ b/indexes.sql @@ -36,7 +36,7 @@ CREATE INDEX planet_osm_polygon_way_area_z10 WHERE way_area > 23300; CREATE INDEX planet_osm_polygon_military ON planet_osm_polygon USING GIST (way) - WHERE landuse = 'military'; + WHERE (landuse = 'military' OR militar = 'danger_area') AND building IS NULL; CREATE INDEX planet_osm_polygon_way_area_z6 ON planet_osm_polygon USING GIST (way) WHERE way_area > 5980000; diff --git a/indexes.yml b/indexes.yml index d2a7415ed6..913c5708b4 100644 --- a/indexes.yml +++ b/indexes.yml @@ -20,7 +20,7 @@ polygon: nobuilding: where: building IS NULL military: - where: landuse = 'military' + where: (landuse = 'military' OR military = 'danger_area') AND building IS NULL water: # The indentation here makes sense in the SQL output where: |-