Skip to main content

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


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 details)

Uploaded Source

Built Distribution

qgsgl-0.1.2-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file qgsgl-0.1.2.tar.gz.

File metadata

  • Download URL: qgsgl-0.1.2.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for qgsgl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f58e5a6ff008030c7b19dbdeb4f5de9ac3c80a180bc2470849f14ada8ee30ec3
MD5 35b69b245200f5f3f3e4f6e39c83f451
BLAKE2b-256 61b3f19994c6543fd170202b4603aad7abd4ad1022a7deda259fc8cdd7dae887

See more details on using hashes here.

File details

Details for the file qgsgl-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: qgsgl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for qgsgl-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad056822b7e57a0e80f06fb965a043aae4150549a4323047f19239459050b18
MD5 94c73205260cb21343e8a15d20b80d10
BLAKE2b-256 f595ca127023ae2af79f2ada7c1c12d58a9d24430d0abd0f2599574471590cde

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page