felt / tippecanoe

Build vector tilesets from large collections of GeoJSON features.
BSD 2-Clause "Simplified" License
970 stars 84 forks source link

minzoom not being honored #297

Open jordanss1 opened 5 hours ago

jordanss1 commented 5 hours ago

I have a big set of all country borders and I want them to be seen from zoom 1 minimum, this is the command I used:

tippecanoe -o ../assets/countries.mbtiles -Z1 -Z8 --drop-densest-as-needed --simplification=1 --no-feature-limit --no-tile-size-limit --generate-ids --json-progress --force ./country_borders.geo.json

Every time it finishes I go to look at the properties of the file and they show a minzoom of 8. I did a test of only a few countries at a time and the minzoom is as expected. Is this just the expected result of so many features across the whole map?

I added a bbox property to my GEOjson in hopes to affect it and no luck. Is there something I'm fundamentally misunderstanding about how this works?

{ "type": "FeatureCollection", "bbox": [-180, -90, 180, 90], "features": [ { "type": "Feature", "properties": { "name": "Bahamas", "iso_a2": "BS", "iso_a3": "BHS", "iso_n3": "044" }, "geometry": { "type": "MultiPolygon", "coordinates": [

e-n-f commented 2 hours ago

You used a capital Z for both your minzoom and maxzoom. You need -Z1 -z8 to get minzoom of 1 and maxzoom of 8.