Bug report #15089
WMS legend image size too big: make it transparent?
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.
Associated revisions
History
#1 Updated by Richard Duivenvoorde over 8 years ago
#2 Updated by Richard Duivenvoorde over 8 years ago
- Status changed from Open to Closed
Fixed in changeset c6e0ad36e8372c20ba49dd31ee36b3cb815d8961.
#3 Updated by Jürgen Fischer about 7 years ago
- Category set to Unknown