An open API service indexing awesome lists of open source software.

https://github.com/wonder-sk/mapbox2qgis

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer)
https://github.com/wonder-sk/mapbox2qgis

mapbox qgis vector-tiles

Last synced: 10 months ago
JSON representation

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer)

Awesome Lists containing this project

README

          

# mapbox2qgis

Convert vector tile styles from Mapbox GL to QGIS (using the new vector tile layer).

This is still in the very early stages and supporting just a subset of styling. More to come later...

How to use: open QGIS, open Python console in QGIS and load the conversion script (make sure to use the correct path):

```
exec(open('/path/to/mapbox2qgis/mapbox2qgis.py'.encode('utf-8')).read())
```

Then you can select a vector tile layer and run the conversion:

```
renderer, labeling = parse_json('/path/to/my/style.json')
iface.activeLayer().setRenderer(renderer)
iface.activeLayer().setLabeling(labeling)
```