openmaptiles-ios-demo icon indicating copy to clipboard operation
openmaptiles-ios-demo copied to clipboard

Extract the entire XYZ file structure as uncompressed from compressed vector tiles

Open roblabs opened this issue 4 years ago • 0 comments

cf. Discussion on whether .pbf can should be compressed when using tippecanoe: mapbox / tippecanoe #582


Given a MBTile file with gzip'd vector data, is there an efficient way to extract the entire XYZ file structure as uncompressed?


  • [x] GZip command
gzip --decompress --recursive  --suffix .pbf *

  • [x] Using ogr2ogr?
# change to z=0, x=0
cd 0/0
ogr2ogr -progress -f Shapefile 0.shp 0.pbf


roblabs avatar Feb 07 '21 04:02 roblabs