Bug report #15553

Updated by Giovanni Manghi about 6 years ago

If in the GetMap request the STYLES parameter is empty/default the OPACITIES parameter works at it should.

If the STYLE=whatever_else then the OPACITIES parameter doesn't work.



How to recreate:



- Download test data from https://github.com/tudorbarascu/qgis-server-tutorial-data/archive/master.zip

- Run GetMap request with default style (works)



<pre>

http://qgisplatform.demo/cgi-bin/qgis_mapserv.fcgi

?MAP=/home/web/projects/world.qgs

&SERVICE=WMS

&VERSION=1.3.0

&REQUEST=GetMap

&BBOX=-432786,4372992,3358959,7513746

&SRS=EPSG:3857

&WIDTH=665

&HEIGHT=551

&FORMAT=image/jpg

&LAYERS=countries

&STYLES=

&OPACITIES=50

</pre>

The above request outputs:

!1.jpeg!



When running the same GetMap request with explicit STYLE, it doesn't work.

<pre>

http://qgisplatform.demo/cgi-bin/qgis_mapserv.fcgi

?MAP=/home/web/projects/world.qgs

&SERVICE=WMS

&VERSION=1.3.0

&REQUEST=GetMap

&BBOX=-432786,4372992,3358959,7513746

&SRS=EPSG:3857

&WIDTH=665

&HEIGHT=551

&FORMAT=image/jpg

&LAYERS=countries

&STYLES=classified_by_name

&OPACITIES=50

</pre>

The above request outputs:

!2.jpeg!



Tested on QGIS Server master, 2.14 and 2.16

Back