-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add json support to WMS GetLegendGraphic #31747
Conversation
Did you consider using |
You mean in my code? Or in the existing code written by @pblottiere? |
|
Ok agree. But I do think this should be done with a separate PR. |
No problems with that, as you prefer. |
88093f438b703861efadee3556c15f83866857e3 adds unit tests. I guess this is ready for more reviews. Thanks! |
Just some minor comments but it looks good to me, thanks @elemoine 👍!
You made my day ;) |
I just took your comments into account. Thanks a lot for your review Paul! |
@elpaso happy to look at converting the code to using |
@elemoine perfect, thanks! |
e756b49
to
64ef4cb
Compare
@elpaso @pblottiere @rldhont any news with this? @rldhont added a Frozen label. What's the reason for this label? When will this be unfrozen? Thank you. |
It's a feature which wasn't merged before freeze, so it needs to wait till 3.10 final release occurs and master branch is unfrozen |
Thank you @nyalldawson |
@elpaso, @pblottiere or others, do you think this PR could be exempt of freeze ? |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
not stale, waiting for unfrozen master. |
@elemoine there is a conflict with test file. |
@rldhont thanks for letting me know. I just rebased my branch onto master, and pushed the result. |
Description
This PR adds support for GetLegendGraphic responses encoded as JSON. It builds on previous work by @pblottiere, who added
QgsLegendRenderer::exportLegendToJson
for that exact purpose.For example a GetLegendGraphic request with FORMAT=image/png producing the image
will produce the following with FORMAT=application/json
The icon image is encoded in base64, and directly displayable in a web page.
Still WIP for the moment. I want to do more testing, and add unit tests. But preliminary comments are welcome.
Checklist
Fixes #11111
at the bottom of the commit messagescripts/prepare-commit.sh
script before each commit