Skip to content

Commit

Permalink
Update condition of index planet_osm_polygon_military
Browse files Browse the repository at this point in the history
This reflects changes to the SQL query of layer landuser-overlay
introduced by commit 52085d3 (pull
request gravitystorm#3469).
  • Loading branch information
Nakaner committed Feb 14, 2019
1 parent 2bcb013 commit 34cf72b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 military = '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;
Expand Down
2 changes: 1 addition & 1 deletion indexes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down

0 comments on commit 34cf72b

Please sign in to comment.