As reported in https://github.com/felt/tippecanoe/issues/219, versions of tippecanoe since 2.43.0 have accidentally dropped all features that specified an explicit minzoom with "tippecanoe":{"minzoom":nnn}. This PR adds an else clause to retain these features in the specified zoom range.
The test file is the Natural Earth 110m populated places, with the scalerank used as the minzoom. Each feature contains an object like this to specify its minzoom:
The unrelated change to mbtiles.cpp and joined_reordered.json is to round the tileset bounding boxes and centers to six digits to avoid test failures on some platforms from slightly different floating point behavior.
As reported in https://github.com/felt/tippecanoe/issues/219, versions of tippecanoe since 2.43.0 have accidentally dropped all features that specified an explicit minzoom with
"tippecanoe":{"minzoom":nnn}
. This PR adds anelse
clause to retain these features in the specified zoom range.The test file is the Natural Earth 110m populated places, with the scalerank used as the minzoom. Each feature contains an object like this to specify its minzoom:
The unrelated change to
mbtiles.cpp
andjoined_reordered.json
is to round the tileset bounding boxes and centers to six digits to avoid test failures on some platforms from slightly different floating point behavior.