felt / tippecanoe

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

tile-join: PBF decoding error in tile #238

Open mgibbs189 opened 2 months ago

mgibbs189 commented 2 months ago

Hello,

I'm trying to convert a dataset (2600+ raster tifs) to a single .pmtiles file.

So far I've converted each file from tif => mbtiles => pmtiles:

// within a loop
gdal_translate -of MBTILES -expand rgba -r nearest {geotiff_path} {mbtiles_path}
pmtiles convert {mbtiles_path} {pmtiles_path}

Then I was hoping to use tile-join to stitch all the pmtiles together.

tile-join -o merged.pmtiles pmtiles/*.pmtiles

This results in "PBF decoding error in tile" errors, and I have no idea how to proceed.

PBF decoding error in tile 14/2867/6426
PBF decoding error in tile 14/2867/6427
PBF decoding error in tile 14/2867/6433
// process stops after outputting the above errors

Could anyone please provide some pointers on what to try next? Thanks in advance!

mtravis commented 2 months ago

@mgibbs189 tippecanoe only works with vector tiles and not raster. I'd imagine tile-join is the same as it's part of the library.

mgibbs189 commented 2 months ago

@mtravis Thanks for the reply.

Dang, I figured as much. Can you think of any other ways to get multiple raster tifs convered into a single pmtiles?

So far I've unsuccessfully tried gdal_merge to try to combine the tifs (according to gdal, it requires 6.5TB of free space to merge the 120GB of tiles)

mtravis commented 2 months ago

There a few ideas here but I think with you could still see issues with output size if if the source is 120GB.

You could try making the tiff smaller if you haven't already. Some good techniques here