mapbox2qgis
mapbox2qgis copied to clipboard
Error when trying to apply OS Zoomstack
I am trying to apply styles for zoomstack: https://github.com/OrdnanceSurvey/OS-Open-Zoomstack-Stylesheets/tree/master/Vector%20Tiles/Mapbox%20GL%20Styles
to: https://s3-eu-west-1.amazonaws.com/tiles.os.uk/data/vector/open-zoomstack/{z}/{x}/{y}.pbf
And I get this error:
skipping non-float opacity ['interpolate', ['linear'], ['zoom'], 5, 0.6, 9, 0.5, 12, 0.1]
skipping non-float opacity ['interpolate', ['linear'], ['zoom'], 6, 0.4, 11, 0.6]
skipping non-float line-width ['interpolate', ['linear'], ['zoom'], 10, 0.1, 15, 0.3, 18, 0.6]
skipping non-float opacity ['interpolate', ['linear'], ['zoom'], 6, 0.5, 12, 1]
skipping non-float line-width ['match', ['get', 'type'], ['National', 'Regional', 'District', 'Local'], 1, ['MHW'], 1.2, ['MLW'], 0.7, 1]
Traceback (most recent call last):
File "/usr/lib/python3.7/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "<string>", line 403, in parse_json
File "<string>", line 357, in parse_layers
File "<string>", line 114, in parse_expression
File "<string>", line 114, in <listcomp>
File "<string>", line 100, in parse_value
File "<string>", line 135, in parse_expression
ValueError: ['match', ['get', 'type'], ['Restricted'], True, False]