Closed kalxas closed 2 years ago
Linked to #7
Error from Validator:
Documentation about GetLegendGraphic: https://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/index.html
Upstream issue: https://osgeo-org.atlassian.net/browse/GEOS-5472
And this is the line where all happens: https://github.com/geoserver/geoserver/blob/2.20.x/src/wms/src/main/java/org/geoserver/wms/capabilities/Capabilities_1_3_0_Transformer.java#L1275
We can add a custom Legend URL through the Styles UI:
@grigoriouelena shall we add a custom URL so we can test the validator?
Reported upstream here: https://osgeo-org.atlassian.net/browse/GEOS-10336
After various tries I come to the conclusion that the provision of an image URL in the Styles GUI is independent of the LegendURL that geoserver forms for the legend graphic in the getcapabilities response.
By that I mean that whatever legend the user defines in the Styles GUI, geoserver will still provide a GetLegendGraphic request to the WMS, omitting the version parameter.
Relevant issue in the INSPIRE validation helpdesk here: https://github.com/INSPIRE-MIF/helpdesk-validator/issues/680
@kalxas I guess that we should try to find the template that geoserver uses to form the capabilities response and add the version parameter. How feasible is this?
I guess this one is also to be closed @grigoriouelena ?