geostyler / geostyler-qgis-parser

GeoStyler Style Parser implementation for QGIS
https://geostyler.org
BSD 2-Clause "Simplified" License
16 stars 9 forks source link

Error importing qml of vector layer with classes (qgis 3.30) #540

Open pvgenuchten opened 8 months ago

pvgenuchten commented 8 months ago

Bug

Describe the bug

when i run: npx geostyler-cli vector-classes.qml

I get this error:

Error during translation of file "vector-classes.qml": TypeError: Cannot read property 'forEach' of undefined

Style file exported with qgis 3.30 (attached)

image

Desktop (please complete the following information):

vector-classes.zip

pvgenuchten commented 8 months ago

as indicated on #455 the style format of qgis has had big changes with 3.28, so this library probably needs to differentiate between qgis >3.28 and <3.28 (or support latest only)

the work by oshistory seems relevant here, can it be merged?