Hi
I’m having a look at this pull request “Allow an ExternalGraphic to be used instead of the GetLegendGraphic service in the WMS GetCapabilities LegendURL”:
https://github.com/geoserver/geoserver/pull/155
The changes look good to me, but the user interface leaves me a doubt:
The way it looks it almost seems like the legend information box has to be filled, it
feels like something required. I find this rather confusing for the end user.
Wouldn’t it be better to have a drop down with two choices about how the legend
links should be generated:
- refer to GetLegendGraphics
- use a static image
and have the fields to configure the static image appear only if the static image option
is selected?
There are a couple of other minor things.
The first is about GetLegendGraphics itself, which at the moment ignores this setting…
no big deal, definitely not blocking, in the end, a WMS client will end up ignoring
GetLegendGraphics if the static link is in the capabilities document.
The other thing is that the GUI assumes the icon is already available at some URL.
Fine, but isn’t this a bit limited and out of line with what we already do about styles?
A legend graphic file in the styles directory is also something we should try to support
imho, just like we refer external graphics in the styles directory when generating KML.
Again, not a blocker, just thinking out loud here.
Cheers
Andrea
–
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it