Store the basezoom/droprate/multiplier decisions in tileset metadata

This commit is contained in:
Erica Fischer
2023-12-15 16:16:37 -08:00
parent c8047de9ab
commit d95990d478
32 changed files with 52 additions and 4 deletions
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/accumulate/out/-z3_-Ethesum%3asum_-Etheproduct%3aproduct_-Ethemax%3amax_-Ethemin%3amin_-Ethemean%3amean_-Etheconcat%3aconcat_-Ethecomma%3acomma_-r1_-K100.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":78},{\"coalesced_as_needed\":65},{\"coalesced_as_needed\":43},{\"coalesced_as_needed\":17}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -8,6 +8,7 @@
"maxzoom": "0",
"minzoom": "0",
"name": "tests/layer-json/out.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -10,6 +10,7 @@
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-B15.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":4727},{\"dropped_by_rate\":4643},{\"dropped_by_rate\":4210}]",
"tippecanoe_decisions": "{\"basezoom\":15,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -10,6 +10,7 @@
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-Bf2000.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":2910},{},{}]",
"tippecanoe_decisions": "{\"basezoom\":12,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -10,6 +10,7 @@
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-rf2000.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":2542},{\"dropped_by_rate\":1547},{}]",
"tippecanoe_decisions": "{\"basezoom\":13,\"droprate\":1.451034,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-rf2000_-Bg.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":2546},{},{}]",
"tippecanoe_decisions": "{\"basezoom\":12,\"droprate\":2.105500,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "11",
"name": "tests/muni/out/-Z11_-z13_-rf2000_-g2.json.check.mbtiles",
"strategies": "[{},{},{},{},{},{},{},{},{},{},{},{\"dropped_by_rate\":1349,\"dropped_by_gamma\":963},{\"dropped_by_rate\":747,\"dropped_by_gamma\":752},{\"dropped_by_gamma\":514}]",
"tippecanoe_decisions": "{\"basezoom\":13,\"droprate\":1.176223,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/muni/out/-r1_-K20.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":4608},{\"coalesced_as_needed\":4608},{\"coalesced_as_needed\":4608},{\"coalesced_as_needed\":4608},{\"coalesced_as_needed\":4608},{\"coalesced_as_needed\":4607},{\"coalesced_as_needed\":4607},{\"coalesced_as_needed\":4606},{\"coalesced_as_needed\":6005},{\"coalesced_as_needed\":5393},{\"coalesced_as_needed\":5012},{\"coalesced_as_needed\":4727},{\"coalesced_as_needed\":4577},{\"coalesced_as_needed\":4003},{\"coalesced_as_needed\":3005}]",
"tippecanoe_decisions": "{\"basezoom\":14,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/muni/out/-z11_--retain-points-multiplier_2_--extend-zooms-if-still-dropping.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":4609},{\"dropped_by_rate\":4609},{\"dropped_by_rate\":4606},{\"dropped_by_rate\":4603},{\"dropped_by_rate\":4594},{\"dropped_by_rate\":4571},{\"dropped_by_rate\":4514},{\"dropped_by_rate\":4372},{\"dropped_by_rate\":5245},{\"dropped_by_rate\":3681},{\"dropped_by_rate\":1012},{}]",
"tippecanoe_decisions": "{\"basezoom\":11,\"droprate\":2.500000,\"retain_points_multiplier\":2.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/muni/out/-zg_--retain-points-multiplier_2.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":4609},{\"dropped_by_rate\":4609},{\"dropped_by_rate\":4606},{\"dropped_by_rate\":4603},{\"dropped_by_rate\":4594},{\"dropped_by_rate\":4571},{\"dropped_by_rate\":4514},{\"dropped_by_rate\":4372},{\"dropped_by_rate\":5245},{\"dropped_by_rate\":3681},{\"dropped_by_rate\":1012},{}]",
"tippecanoe_decisions": "{\"basezoom\":11,\"droprate\":2.500000,\"retain_points_multiplier\":2.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--drop-densest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":168,\"tile_size_desired\":39190},{\"dropped_as_needed\":184,\"tile_size_desired\":25154},{\"dropped_as_needed\":160,\"tiny_polygons\":1,\"tile_size_desired\":21201},{\"dropped_as_needed\":133,\"tile_size_desired\":10758},{\"dropped_as_needed\":58,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--drop-fraction-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":164,\"tile_size_desired\":39190},{\"dropped_as_needed\":187,\"tile_size_desired\":25154},{\"dropped_as_needed\":190,\"tiny_polygons\":1,\"tile_size_desired\":21201},{\"dropped_as_needed\":181,\"tile_size_desired\":10758},{\"dropped_as_needed\":147,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--drop-smallest-as-needed.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":174,\"tile_size_desired\":39190},{\"dropped_as_needed\":200,\"tile_size_desired\":25154},{\"dropped_as_needed\":187,\"tiny_polygons\":1,\"tile_size_desired\":21201},{\"dropped_as_needed\":154,\"tile_size_desired\":10758},{\"dropped_as_needed\":79,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_admin_0_countries/out/-ae_-zg_-M5000_--force-feature-limit.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":479,\"tile_size_desired\":39190},{\"dropped_as_needed\":264,\"tiny_polygons\":2,\"tile_size_desired\":25154},{\"dropped_as_needed\":221,\"tiny_polygons\":2,\"tile_size_desired\":21201},{\"dropped_as_needed\":93,\"tile_size_desired\":10758},{\"dropped_as_needed\":9,\"tile_size_desired\":6601},{\"tiny_polygons\":2}]",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_2_-Bf20_-rf20_-pb.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":237},{\"dropped_by_rate\":229},{}]",
"tippecanoe_decisions": "{\"basezoom\":2,\"droprate\":6.600000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,6 +9,7 @@
"maxzoom": "3",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_3_-Bg.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_3_-rp.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":230},{\"dropped_by_rate\":231},{\"dropped_by_rate\":160},{}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":2.658283,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,6 +9,7 @@
"maxzoom": "8",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-r1_-z8_-J_tests%2ffeature-filter%2fplaces-filter.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":8,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-yNAME_-z5_-B3.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":227},{\"dropped_by_rate\":227},{\"dropped_by_rate\":152},{},{},{}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-yNAME_-z5_-r1.5.json.check.mbtiles",
"strategies": "[{\"dropped_by_rate\":211},{\"dropped_by_rate\":214},{\"dropped_by_rate\":179},{\"dropped_by_rate\":138},{\"dropped_by_rate\":70},{}]",
"tippecanoe_decisions": "{\"basezoom\":5,\"droprate\":1.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z0_-M10000_--drop-densest-as-needed_--extend-zooms-if-still-dropping-maximum_2.json.check.mbtiles",
"strategies": "[{\"dropped_as_needed\":219,\"tile_size_desired\":74691},{\"dropped_as_needed\":207,\"tile_size_desired\":44398},{\"dropped_as_needed\":181,\"tile_size_desired\":35126}]",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,6 +9,7 @@
"maxzoom": "0",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z0_-r1_-yNAME_-ySOV0NAME_-yELEVATION_-YNAME%3aCity_-YSOV0NAME%3aCountry.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z3_-K20_-r1_-yNAME_-k2.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":207},{\"coalesced_as_needed\":174},{\"coalesced_as_needed\":108},{}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,6 +9,7 @@
"maxzoom": "3",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z3_-r1_--limit-tile-feature-count_3.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -9,6 +9,7 @@
"maxzoom": "3",
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-z3_-r1_--limit-tile-feature-count_3_--limit-tile-feature-count-at-maximum-zoom_10.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-zg_-K20_-r1_-yNAME.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":207},{\"coalesced_as_needed\":174},{\"coalesced_as_needed\":108},{\"coalesced_as_needed\":51}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
@@ -10,6 +10,7 @@
"minzoom": "0",
"name": "tests/ne_110m_populated_places/out/-zg_-K20_-r1_-yNAME_-kg.json.check.mbtiles",
"strategies": "[{\"coalesced_as_needed\":207},{\"coalesced_as_needed\":174},{\"coalesced_as_needed\":108},{}]",
"tippecanoe_decisions": "{\"basezoom\":3,\"droprate\":1.000000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [
+1
View File
@@ -9,6 +9,7 @@
"maxzoom": "3",
"minzoom": "0",
"name": "tests/stable/out/-z3_-B0.json.check.mbtiles",
"tippecanoe_decisions": "{\"basezoom\":0,\"droprate\":2.500000,\"retain_points_multiplier\":1.000000}",
"type": "overlay",
"version": "2"
}, "features": [