Skip to content

Commit

Permalink
disable all buildings at zoom level 13.
Browse files Browse the repository at this point in the history
buildings at zoom level 13 were going through a new optimization step that was crashing (running out of memory I think).

New optimization step described here:
	openmaptiles#936

Bugs about optimization here:
	openmaptiles#938
	openmaptiles#937
  • Loading branch information
arichnad committed Sep 4, 2020
1 parent 5cf764f commit f274830
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions layers/building/building.sql
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,6 @@ SELECT geometry,
END) AS colour,
CASE WHEN hide_3d THEN TRUE END AS hide_3d
FROM (
SELECT
-- etldoc: osm_building_block_gen1 -> layer_building:z13
osm_id,
geometry,
NULL::int AS render_height,
NULL::int AS render_min_height,
NULL::text AS material,
NULL::text AS colour,
FALSE AS hide_3d
FROM osm_building_block_gen1
WHERE zoom_level = 13
AND geometry && bbox
UNION ALL
SELECT
-- etldoc: osm_building_polygon -> layer_building:z14_
DISTINCT ON (osm_id) osm_id,
Expand Down
1 change: 0 additions & 1 deletion layers/building/building.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ layer:
hide_3d: |
If True, building (part) should not be rendered in 3D. Currently, [building outlines](https://wiki.openstreetmap.org/wiki/Simple_3D_buildings) are marked as hide_3d.
schema:
- ./update_building.sql
- ./building.sql
datasources:
- type: imposm3
Expand Down

0 comments on commit f274830

Please sign in to comment.