mapbox / tippecanoe

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

Splitting at any zoom level #871

Open waybarrios opened 4 years ago

waybarrios commented 4 years ago

I don't know if possible to split Tippecanoe function by zoom level.

For example:

tippecanoe -zg -o out.mbtiles --drop-densest-as-needed in.geojson --half 1 # Do the first half

an then

tippecanoe -zg -o out.mbtiles --drop-densest-as-needed in.geojson --half 2 #Do the other half

To be honest, I dont know if any flag exists. But if there is a way to do, please lemme know.

I have limit computational resources, so I need to be efficient.

e-n-f commented 3 years ago

You can do

tippecanoe -Z0 -z8 -o out.mbtiles --drop-densest-as-needed in.geojson
tippecanoe -Z9 -z16 -o out2.mbtiles --drop-densest-as-needed in.geojson

to do half the zooms in one process and half of them in another. But the process that outputs the high zoom levels still has to do some work at the low zooms to split the tiles up, so you may not actually save any time this way.