From 2b0f5aaf7ffa206d06968ca9dd8571204141e179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 4 Jul 2020 20:15:57 +0200 Subject: [PATCH] Some more usage info --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7519ffb..41e6e66 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,19 @@ make ``` ## Usage +```shell +pbf2png [options] DIR +``` + 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. +is `([0-9]+).*` which should fit all common tile name schemes like `$z-$x-$y.pbf`, +`$z_$y_$x.mvt`, etc. + +## Styles +See the QtPBFImagePlugin [documentation](https://github.com/tumic0/QtPBFImagePlugin#styles) +for how to set the style used for rendering the tiles. For the default OpenMapTiles +data schema and the default OSM-Liberty style nothing needs to be done.