Bug report #15089

WMS legend image size too big: make it transparent?

Added by Richard Duivenvoorde over 8 years ago. Updated about 7 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23031

Description

Hi, some WMS services provide legend images for layers which are much too big:

http://geoservices.knmi.nl/cgi-bin/RADNL_OPER_R___25PCPRR_L3.cgi?

As you can see in the screendump: knmilegendnotok.png

The owner of the service, though gave me a simple hack: add &transparent=true to the getlegendgraphic makes the layer manager resize the image to the viewable part of the iamge (see knmilegendok.png)...

So I have the patch ready here, just wondering if somebody sees a problem in adding this by default (UNLESS off course there is a explicit &TRANSPARENT=false in the legendgraphicurl in the wms capabilities.

knmilegendnotok.png - legend much too big (64 KB) Richard Duivenvoorde, 2016-06-21 01:58 AM

knmilegendok.png - legend with &TRANSPARENT=true (91.5 KB) Richard Duivenvoorde, 2016-06-21 01:58 AM

Associated revisions

Revision c6e0ad36
Added by Richard Duivenvoorde over 8 years ago

Merge pull request #3226 from rduivenvoorde/legendsizefix

Adding &TRANSPARENT=true makes too big legend images look good

fix #15089

History

#2 Updated by Richard Duivenvoorde over 8 years ago

  • Status changed from Open to Closed

#3 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

Also available in: Atom PDF