Hi,

There's a thread from 2010 that may relate to this: https://sourceforge.net/p/geoserver/mailman/message/24434518/ - unless something has changed since then, the answer appears to be - either do it manually, or have the code changed.

Curiously, if I'm reading the SLD/WMS specs correctly, "LegendURL" (defined in WMS) isn't necessarily related to GetLegendGraphic (defined in SLD). It *can* be, but the SLD spec says that GetLegendGraphic can be used to extend the LegendURL. The original LegendURL was I guess therefore designed for fixed images? Maybe you can create pre-rendered graphics (scripted?) and point GeoServer at them?

Or maybe a script to automatically add them for any layers that are missing them?

Just a thought, hopefully helps,
Jonathan


On 2019-01-24 21:38, Olyster wrote:
Hi,

I'm using 2.14.0.

The WMS GetCapabilities doesn't contain a section "LegendURL" for layers
group. This results in no Legend in client programs.

If you call the GetLegendGraphic explicitly for a Layer group, the legend is
returned.

For now we modify the GetCapabilities by hand to add a LegendURL section.
The client now shows a Legend for layer groups.

Is it that only way to enable Legend for layer groups ?

Thanks



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users




_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to