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
Release files for qgsgl 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qgsgl-0.1.2.tar.gz | 18.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qgsgl-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.9 kB
Release files / qgsgl-0.1.2.tar.gz
| Download URL | qgsgl-0.1.2.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f58e5a6ff008030c7b19dbdeb4f5de9ac3c80a180bc2470849f14ada8ee30ec3
|
|
BLAKE2b-256 checksum How to use checksums |
61b3f19994c6543fd170202b4603aad7abd4ad1022a7deda259fc8cdd7dae887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / qgsgl-0.1.2-py3-none-any.whl
| Download URL | qgsgl-0.1.2-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ad056822b7e57a0e80f06fb965a043aae4150549a4323047f19239459050b18
|
|
BLAKE2b-256 checksum How to use checksums |
f595ca127023ae2af79f2ada7c1c12d58a9d24430d0abd0f2599574471590cde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|