ibesora / vt-optimizer

A small NodeJS cli tool to inspect and optimize Mapbox Vector Tiles files
MIT License
65 stars 12 forks source link

Error: incorrect header check at Zlib.zlibOnError #9

Closed iBinh closed 4 years ago

iBinh commented 4 years ago

command: node --max-old-space-size=16386 index.js -m ../tiles/input.mbtiles -s ../style.json -o files/output.mbtiles

Screen Shot 2019-12-17 at 17 09 32

ibesora commented 4 years ago

Hi! Can you please provide an example of the VT file you are using? It seems it might not be compressed but I have yet to find one that it isn't. Thanks!

iBinh commented 4 years ago

Update: I compressed mbtiles cause error

ibesora commented 4 years ago

Sorry, can you be more specific about what happened? I hadn't had time to look at the issue and I want to make sure it's something I do control. Thanks!

iBinh commented 4 years ago

I use tippecanoe with -pC options to create mbtiles from geojson. This will compress tiles and causes error

ibesora commented 4 years ago

tippecanoe -pC disables compression, not enables it. Will add a check so it doesn't crash when tiles are not compressed Thanks for the info!