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.

Files for qgsgl, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size qgsgl-0.1.2-py3-none-any.whl (38.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size qgsgl-0.1.2.tar.gz (18.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page