GetLegendGraphics option to return feature counts at the end of rule labels fails, if no BBOX is send with stand-alone GetLegendgraphics request

Description

In a GetLegendGraphic request BBOX parameters are optional. If the new legend option () legend_options=countMatched is used in a stand-alone GetLegendGraphic request the BBOX becomes mandatory. If BBOX is missing the GetLegendGraphic request fails with "GetMap requests must include a BBOX parameter".

While this breaks WMS standard, I propose to use the layers bbox as default if BBOX is not available in the GetLegendGraphic request. This will make this feature more robust and offers the possibility to show layer-overall counts in a legend graphic (not only depending on the recent requested map extend) alternatively by not sending a bbox param.

See for examples: http://docs.geoserver.org/latest/en/user/services/wms/get_legend_graphic/index.html#content-dependent-legends

Environment

None

Status

Assignee

Unassigned

Reporter

Marco Lechner - German Office for Radiation Protection

Triage

None

Fix versions

Affects versions

2.12-beta

Components

Priority

Medium
Configure