OS-Open-Zoomstack-Stylesheets icon indicating copy to clipboard operation
OS-Open-Zoomstack-Stylesheets copied to clipboard

Support for QGIS vector tile style

Open saberraz opened this issue 5 years ago • 6 comments

QGIS (3.13+) supports vector tiles naively. It will be great to have QML styles for QGIS in addition to Mapbox.

saberraz avatar Apr 25 '20 13:04 saberraz

@saberraz I haven't had a chance to test the Vector Tiles yet (awesome work BTW), so not sure how the styling works. Would the standard QML files we have under the GeoPackage not work?

TimJMartin avatar Apr 26 '20 18:04 TimJMartin

Unfortunately not. The vector tile styling requires other tags and not completely compatible with geopackge qml styles.

saberraz avatar May 22 '20 06:05 saberraz

Hi @saberraz, ill take a look at this. Should be just a case of updating the QML files to match the attribution header fields within the VT's but is there anything else you've noticed that you think might not amending?

egil1978 avatar May 27 '20 08:05 egil1978

Hi @egil1978 one thing we noticed is the size of the file. I think there are some duplicates.

We have added vector tile writer to QGIS, so maybe it is worth running the VT creation algorithm in QGIS for a small subset of data and compare it with other methods you have created the layer.

saberraz avatar May 27 '20 08:05 saberraz

Hi @saberraz, have you ever had any problems with labelling vector tile data in QGIS? I am trying to replicate the styling rules for text that we have for our Vector Map Local GKPG format but in doing so I end up with one bit of text appearing on screen. If you take a look at this image the red points should be labelled but only one label is appearing? Screenshot 2022-05-24 092502

egil1978 avatar May 24 '22 08:05 egil1978

A big thank you to @cjmayo for creating QGIS styling support for OS Zoomstack Vector Tiles. 3 styles are now available via the repo in Outdoor, Night and Tritanopia. We will look at adding Road, Light and the other CVD versions shortly.

egil1978 avatar Jan 10 '23 09:01 egil1978