-
-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Steps to reproduce:
Download latest geostyler-cli from https://github.com/geostyler/geostyler-cli/releases/tag/v4.3.0
Download point_rules.qml from https://github.com/geostyler/geostyler-qgis-parser/blob/main/data/qmls_old/point_rules.qml
Run the first against the second to produce a GeoStyler object.
End result: resulting rules don't contain any filter attributes, ie filter: ['==', 'Bildpositi', 1], is missing.
Cloning geostyler/geostyler-qgis-parser and doing npm run test shows that all tests pass -
indicating that data/qmls_old/point_rules.qml is successfully converted to data/styles/point_rules.ts.
And point_rules.ts does have filter attributes: see https://github.com/geostyler/geostyler-qgis-parser/blob/main/data/styles/point_rules.ts#L7
So, the latest geostyler-cli is missing functionality that is present in the latest geostyler-qgis-parser.
This would seem to indicate the geostyler-qgis-parser (v3.0.0) or geostyler-cql-parser (v4.0.0) that are bundled with geostyler-cli (v4.3.0) are missing some necessary changes that are present in in geostyler-qgis-parser@HEAD, without which point_rules.qml cannot be parsed.
However, I can't see any relevant commits that are present at geostyler-qgis-parser@HEAD but not in geostyler-qgis-parser (v3.0.0) or geostyler-cql-parser (v4.0.0).
So, it's a bit of a mystery to me why this is not working.