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
Updated patch to allow an ExternalGraphic to be used instead of the GetLegendGraphic service in the WMS GetCapabilities LegendURL #400
Conversation
…etLegendGraphic service in the WMS GetCapabilities LegendURL
Mike, it's similar, but not same. Mauro some time ago implemented this extension to GeoServer that allows it to get either a layer group, or a comma separate list of layers, in GetLegendGraphic, which ends up building a full legend with titles. The new graphic option should be taken into account in the rendered image legend graphic builder, instead of using the SLD to generate the legend. |
Hi, I had another look at the patch and tried it out a bit (the original objective was to try and complete GetLegendGraphics multilayer code). I invite you to participate to the discussion, if possible. |
Just to summarise the email discussion. Pull request looks okay (allows use of an externally served image). Discussion highlighted some reservations about this approach... the use of an externally served image (while technically correct) is not quite what is expected and disrupt the code for multi-layer legend. Actions:
Question: Do you have a requirement to reference an external image? |
Apologies for parachuting into this Issue, but Google got me here. I have this exact need. Relative to the last comments:
First and foremost, I need to be able to specify a static image to replace the dynamic GetLegendGraphic. If that means manually (via the shell) copying the image files directly into the styles directory in the data directory, that's a small price to pay compared to the broader ability of specifying my own legend graphic. I'd rather see that basic capability rolled out soon, first, than wait for the extra niceties to be added before the basic capability is available. Thank you! |
Thanks Emilio. In this case conversation has stalled out as the original As it is we were hoping to talk to the patch authors and plan accordingly. On Saturday, March 8, 2014, Emilio Mayorga notifications@github.com wrote:
Jody Garnett |
After reading the discussion threads across several github Issues, I thought it sounded like this was getting close to completion. Oh well. Unfortunately I can't help with Java development. Thanks for all the great work on GeoServer! |
Yep, there is a gap between having a working implementation and getting it Jody Garnett On Mon, Mar 10, 2014 at 4:42 PM, Emilio Mayorga notifications@github.comwrote:
|
Jody, I am taking over for mbenowit because he is no longer on the project for which this pull request was created (we work together). To answer your question, we do not have a requirement to reference an external image. In fact, we are currently using this patch in our GeoServer and we put the images in the styles directory. Due to networking restrictions our production servers do not have internet access anyway. Michael Romero |
That is good, referring to an image in the style directory will be much Do you think you could join me on geoserver-devel to discuss this - as we Jody Garnett On Sat, Mar 15, 2014 at 8:28 AM, Michael Romero notifications@github.comwrote:
|
Hi, mind, the main reason why I did not merge the pull is that it will create inconsistent behavior for those asking legend graphics for layer groups, or calling directly GetLegendGraphics |
Catching up with this @mike-es - The original #400 commit is a bit stale, since this is not my pull request I cannot push up the conflict resolution. I can start a new pull request if you like? Looks like we need:
See: https://github.com/jodygarnett/geoserver/tree/legend-capabilities |
So I am reviewing this code with an eye towards updating BufferedImageLegendGraphicBuilder and I am struck by something. If the goal is simply to allow the use of a user supplied image we would be better served by using this LegendInfo value (or even the SE 1.1 GraphicLegend) as part of the GetLegendGraphic response, and maintain the GetCapabilities document the way it is. As it is the LegendCapabilitiesTest references: We have the option of:
Or maintaining: |
I have a rebase of the above patch, and an initial integration with GetLegendGraphics: https://github.com/jodygarnett/geoserver/commits/legend-capabilities Things to do:
To test the above branch:
A couple things I have learned:
|
Replaced with #551 |
This is a replacement for pull request #349.