Calculate an antimeridian-adjusted bounding box in tileset metadata (#82)

* Calculate a new antimeridian-adjusted bounding box

* Add antimeridian bounding box to pmtiles, dirtiles, and tile-join

* Don't take out-of-bounds latitudes into account in the adjusted bbox

* Update changelog

* Forgot to adjust tests after the last change
This commit is contained in:
Erica Fischer
2023-03-09 20:26:48 -08:00
committed by GitHub
parent 329dd86bfd
commit afc7ca01a2
195 changed files with 297 additions and 13 deletions
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/--extra-detail_30_--smallest-maximum-zoom-guess_3.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "45.000000,33.256630,2",
"description": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_2_-Bf20_-rf20_-pb.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_3.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_3_-Bg.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/--smallest-maximum-zoom-guess_3_-rp.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "-62.578125,17.307462,8",
"description": "tests/ne_110m_populated_places/out/-r1_-z8_-J_tests%feature-filter%places-filter.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "-175.220564,-21.135745,14",
"description": "tests/ne_110m_populated_places/out/-yNAME.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-Ccat_-z5.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z0_-c.%tests%filter%null.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "11.250000,48.378236,4",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z4_--no-tile-stats.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "11.250000,48.378236,4",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z4_-C.%tests%filter%remove.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "11.250000,48.378236,4",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z4_-C.%tests%filter%rename.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "11.250000,48.378236,4",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z4_-C.%tests%filter%rename_-c.%tests%filter%rename2.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_--drop-denser_60.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_--drop-smallest-as-needed.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_-B3.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_-c.%tests%filter%rename.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_-ccat.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "16.875000,44.951199,5",
"description": "tests/ne_110m_populated_places/out/-yNAME_-z5_-r1.5.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-105.029297,29.840644,-95.361328,39.774769",
"center": "-95.361328,29.840644,0",
"description": "tests/ne_110m_populated_places/out/-z0_--clip-bounding-box_-110,27,-92,52.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-z0_--order-by_LATITUDE.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-z0_--order-by_SCALERANK_--order-descending-by_LABELRANK_--order-by_LATITUDE.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-z0_--tile-stats-attributes-limit_5_--tile-stats-sample-values-limit_200_--tile-stats-values-limit_20.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-z0_-C.%tests%filter%null.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "0.000000,0.000000,0",
"description": "tests/ne_110m_populated_places/out/-z0_-r1_-yNAME_-ySOV0NAME_-yELEVATION_-YNAME@City_-YSOV0NAME@Country.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "90.000000,42.525564,1",
"description": "tests/ne_110m_populated_places/out/-z1_-M10000_--coalesce-smallest-as-needed.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "90.000000,42.525564,1",
"description": "tests/ne_110m_populated_places/out/-z1_-M10000_--drop-smallest-as-needed.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/-z3_-K20_-r1_-yNAME_-k2.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "-157.500000,-20.489949,3",
"description": "tests/ne_110m_populated_places/out/-z3_-r1_--limit-tile-feature-count_3.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "-67.500000,20.489949,3",
"description": "tests/ne_110m_populated_places/out/-z3_-r1_--limit-tile-feature-count_3_--limit-tile-feature-count-at-maximum-zoom_10.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "11.250000,48.378236,4",
"description": "tests/ne_110m_populated_places/out/-z4_-yNAME_-c.%tests%filter%remove.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,20.489949,3",
"description": "tests/ne_110m_populated_places/out/-zg_-K20_-r1_-yNAME.json.check.mbtiles",
@@ -1,4 +1,5 @@
{ "type": "FeatureCollection", "properties": {
"antimeridian_adjusted_bounds": "-175.220564,-41.299973,179.216647,64.150023",
"bounds": "-175.220564,-41.299973,179.216647,64.150023",
"center": "22.500000,53.746579,3",
"description": "tests/ne_110m_populated_places/out/-zg_-K20_-r1_-yNAME_-kg.json.check.mbtiles",