Uploaded image for project: 'GeoServer'
  1. GEOS-8125

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.12-beta
    • Fix Version/s: 2.12-beta, 2.11.2
    • Component/s: WMS
    • Labels:
      None

      Description

      In a GetLegendGraphic request BBOX parameters are optional. If the new legend option ( GEOS-8114 Resolved ) 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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lem-fr Marco Lechner - German Office for Radiation Protection
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: