Opened 6 years ago

Closed 6 years ago

#425 closed enhancement (fixed)

WMS Time Parameter re-requesting Legend

Reported by: geographika Owned by:
Priority: trivial Milestone: 1.1
Component: GeoExt.WMSLegend Version: 1.0
Keywords: wms time legend getlegendgraphic Cc:
State: None

Description

When using a timeslider to filter WMS layers, changing the TIME parameter causes all the WMS layers to trigger a new GetLegendGraphic request.

The patch sets the TIME parameter to NULL so the URLs do not differ, so:

&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application/vnd.ogc.se_xml&TIME=2002/2011&LAYER=RP_BG&SCALE=433344.0163321681&FORMAT=image/gif

becomes the following URL with the TIME parameter filtered out:

&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&EXCEPTIONS=application/vnd.ogc.se_xml&LAYER=RP_BG&SCALE=433344.0163321681&FORMAT=image/gif

It seems to make sense to set this to NULL to reduce the number of requests.

However there could be rare cases where a legend graphic changes dependent on the TIME paramteres?

Attachments (1)

wms_time_patch.patch (537 bytes) - added by geographika 6 years ago.
Patch to set TIME parameter to null

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by geographika

Patch to set TIME parameter to null

comment:1 Changed 6 years ago by bartvde

  • Resolution set to fixed
  • Status changed from new to closed

(In [2861]) ignore TIME parameter for WMS GetLegendGraphic, p=geographika, r=me (closes #425)

Note: See TracTickets for help on using tickets.