Convert QGIS project into webmapgl style
Project description
Conversion tool for QGIS map project into webmapgl style
Usage
Sources
GeoJSON
from qgsgl import GeoJSONSource
url = 'https://example.com/data/stations.geojson'
source = GeoJSONSource('stations', url)
source.add_layer(station_layer)
source.write('/www/data/stations.geojson')
style.add_source(source)
Vector
from qgsgl import VectorSource
url = 'https://example.com/tiles/project.json'
source = VectorSource('project', url)
source.add_layer(station_layer, min_zoom=12, max_zoom=14)
source.add_layer(street_layer, min_zoom=10, max_zoom=14)
source.write('/www/tiles/project.mbtiles')
style.add_source(source)
Running Tests
python -m unittest discover
Changelog
[0.1.2] - 2019-06-20
- Fixes fill layer label placed incorrectly (#50)
- Multiple symbol layers now display in correct order (#52)
- Fill layer no brush property now controls fill color (#53)
- Circle layer will not generate two GL layers (#54)
[0.1.1] - 2019-05-20
- Fixes bugs with color not using alpha channel (#45)
- Created checks for unsupported symbol layer and simplified layer class selection logic (#46)
- Removed incorrect visibility logic from layer converter (#51)
[0.1.0] - 2019-05-02
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qgsgl-0.1.2.tar.gz
(18.1 kB
view hashes)
Built Distribution
qgsgl-0.1.2-py3-none-any.whl
(38.8 kB
view hashes)