Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support QML expressions #259

Open
geraldo opened this issue Oct 15, 2021 · 4 comments
Open

Support QML expressions #259

geraldo opened this issue Oct 15, 2021 · 4 comments

Comments

@geraldo
Copy link

geraldo commented Oct 15, 2021

Feature Request

We have a web based map viewer based on Openlayers for QGIS projects and generally use WFS together with SLDReader to apply styles to vector layers.

QGIS has the ability to export symbology to SLD, but ignores expressions. See this QGIS issue for more info about this limitation.

But it includes expressions when exporting symbology to QML. That's why I was thinking of using Geostyler to overcome this limitation of QGIS, as I already use it successfully to convert QML to Mapbox styles.

Any plans to accept expressions for QML parser?

@jansule
Copy link
Contributor

jansule commented Oct 15, 2021

Supporting QML expressions would definitely be a nice feature!

Currently, this feature is not on our roadmap, but I am sure, such a feature would be greatly appreciated.

geostyler-cql-parser probably provides already the majority of needed functionality. With just some minor adjustments (e.g. wrapping attribute names in double quotes) we should be able to parse basic expressions.

Supporting special keywords (e.g. $geometry) and functions (e.g. buffer()) is of course a completely different topic, and I rather doubt, we will be able to support them.

Would you like to create a (basic) parser that reads QML expressions? If so, we can set up a repository for this.

@geraldo
Copy link
Author

geraldo commented Oct 29, 2021

Thanks for your response. I never did development with typescript and I'm quite lost on where to get started. For now we try to improve this situation on QGIS.

@jansule
Copy link
Contributor

jansule commented Nov 5, 2021

Thanks for the info @geraldo. qgis/QGIS-Enhancement-Proposals#238 definitely sounds like a good idea.

I never did development with typescript and I'm quite lost on where to get started

In case you are still motivated to work on GeoStyler, we can have a call, where we do the initial set up together and give you a brief introduction into the code. We are always happy to extend the community. So just let us know.

@KaiVolland
Copy link
Contributor

With the latest release and the use oft geostyler-style v7 it would now be possible to implement the parsing of qml-expressions. Bit i'm not sure how difficult this would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Todo
Development

No branches or pull requests

3 participants