По умолчанию pbf от tippecanoe в формате gzip (хотя и с расширением pbf) mapbox/tippecanoe#793
Figured out after much searching that this is probably indicating a zipped pbf file. That kind of should at least be mentioned somewhere.
Tippecanoe generates gzipped tiles by default because that is what Mapbox uploads and clients expect. You can use --no-tile-compression if you don't want compression.
Это приводит к ошибке mapbox/mapbox-gl-js#1567 (comment)
@mofoyoda the error generally fires when it sees something it doesn't expect when decoding tiles from protocol buffers. Can you send us a sample of a particular tile that doesn't work?
Варианты решений:
- либо распаковать roblabs/openmaptiles-ios-demo#3
cf. Discussion on whether
.pbfcan should be compressed when usingtippecanoe: mapbox / tippecanoe #582Given a MBTile file with
gzip'd vector data, is there an efficient way to extract the entire XYZ file structure as uncompressed?
- GZip command
gzip --decompress --recursive --suffix .pbf *
- либо изначально в tippecanoe дать флаг mapbox/tippecanoe#793 (comment)
Tippecanoe generates gzipped tiles by default because that is what Mapbox uploads and clients expect. You can use --no-tile-compression if you don't want compression.
Пример команды для генерации тайлов
tippecanoe -zg --output-to-directory=roadstiles --drop-densest-as-needed --extend-zooms-if-still-dropping --no-tile-compression roads.geojson