roblabs / openmaptiles-ios-demo

iOS demo app for showing offline maps for mobile.
https://RobLabs.com/openmaptiles-ios-demo
MIT License
32 stars 13 forks source link

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

Open roblabs opened 3 years ago

roblabs commented 3 years ago

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?


gzip --decompress --recursive  --suffix .pbf *

# change to z=0, x=0
cd 0/0
ogr2ogr -progress -f Shapefile 0.shp 0.pbf