Skip to content

Commit 49df14c

Browse files
committed
Allow dropping of dense point clouds on lower PMtile zooms.
1 parent 9877a67 commit 49df14c

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

scripts/conflation/prepare_pmtiles.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
22
Build conflated.pmtiles from the conflated POI dataset.
33
4-
Output is a single-zoom PMTiles archive (z14) keyed by the config's
5-
``upload.pmtiles`` block. OpenLayers over-zooms z15-20 natively, and the site
6-
never renders below z14, so tiling extra zoom levels would just waste disk and
7-
wall time.
4+
Output is a multi-zoom PMTiles archive (z10-z14 by default) keyed by the
5+
config's ``publish.pmtiles`` block. ``drop-densest-as-needed`` silently
6+
drops features at lower zooms to keep each tile under ~500 KB; the site
7+
scales the point radius down at lower zooms to match. OpenLayers
8+
over-zooms z15+ natively as lossless geometric scale-ups of the z14 tile.
89
910
Intermediate FlatGeobuf is staged next to the output and deleted on success.
1011
"""

scripts/osm_snapshot/prepare_pmtiles.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
22
Build osm_snapshot.pmtiles from the rated OSM snapshot.
33
4-
Output is a single-zoom PMTiles archive (z14) keyed by the config's
5-
``upload.pmtiles`` block. OpenLayers over-zooms z15-20 natively, and the site
6-
never renders below z14, so tiling extra zoom levels would just waste disk and
7-
wall time.
4+
Output is a multi-zoom PMTiles archive (z10-z14 by default) keyed by the
5+
config's ``publish.pmtiles`` block. ``drop-densest-as-needed`` silently
6+
drops features at lower zooms to keep each tile under ~500 KB; the site
7+
scales the point radius down at lower zooms to match. OpenLayers
8+
over-zooms z15+ natively as lossless geometric scale-ups of the z14 tile.
89
910
Intermediate FlatGeobuf is staged next to the output and deleted on success.
1011
"""

0 commit comments

Comments
 (0)