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)
- Host: GitHub
- URL: https://github.com/wonder-sk/mapbox2qgis
- Owner: wonder-sk
- License: mit
- Created: 2020-04-08T10:15:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T07:52:10.000Z (about 6 years ago)
- Last Synced: 2025-04-11T16:59:51.542Z (about 1 year ago)
- Topics: mapbox, qgis, vector-tiles
- Language: Python
- Size: 10.7 KB
- Stars: 19
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```