mirror of
https://github.com/tumic0/pbf2png.git
synced 2024-10-06 07:03:21 +02:00
18 lines
732 B
Markdown
18 lines
732 B
Markdown
|
# pbf2png
|
||
|
PBF(MVT) tiles to PNG convertor - [QtPBFImagePlugin](https://github.com/tumic0/QtPBFImagePlugin)
|
||
|
example/benchmark app. Converts a directory of Mapbox vector tiles to PNG tiles.
|
||
|
|
||
|
## Build
|
||
|
```shell
|
||
|
qmake pbf2png.pro
|
||
|
make
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
Use `pbf2png -h` for help. The parameters should be self-explanatory, except the
|
||
|
`-M` - tile name mask parameter. It's only there because of the notoriously known
|
||
|
design flaw in the Mapbox vector tiles specification - the missing zoom level
|
||
|
in the tile data. To render a tile, a workaround that fetches the zoom level from
|
||
|
the file name (or somewhere else) is required. The default mask(regular expression)
|
||
|
is `([0-9]+).*` which should fit all common tile name schemes like $z-$x-$y.pbf.
|