Use maps.wien.gv.at's Vector Basemap with QGIS 3.8
[Update September 2021]
As of QGIS 3.16 this works out of the box and there is now official documentation on how to use basemap.at's Vector maps.
The original post follows.
Prepare a TileJSON file
Vector Tiles Reader unfortunately doesn't allow to directly use the output of ArcGIS, with which the vector basemaps are exported. We have to create our own TileJSON file from the data as outlined in this issue.
First, let's install jq, a command line tool for JSON processing which we use later to generate the TileJSON file.
Then get the original ESRI
root.json from maps.wien.gv.at, which contains the layer information we need to put in the TileJSON.
Vector Tiles Reader only supports ASCII names in layer names, so let's make the file ASCII compatible by removing umlauts.
Now we need to generate a basic TileJSON which Vector Tiles Reader can handle. We use this as the template, already providing the URL template for the vector tile files.
Finally, we copy over the
layers attribute of the
root.json into our template as
jq, storing the resulting file.
Adding the Basemap
We now can use that generated
tilejson.json file directly in QGIS using these steps
In QGIS, use the menu Vector > Vector Tiles Reader > Add Vector Tiles Layer...
In the Server Tab, click New
As the TileJSON URL we can paste the link directly from the
jq result from above.
Continue with Save, wait for the layers to show up in the list and finish and then click Add.
This looks very rough, but should be a good starting point.