Skip to content

Commit e1f5c3f

Browse files
authored
Merge pull request #6565 from tudorbarascu/styles_opacities
add server test for GetMap with opacities and non-default styles
2 parents 0079034 + 10cfca4 commit e1f5c3f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/src/python/test_qgsserver_wms_getmap.py

+19
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,25 @@ def test_wms_getmap_opacities(self):
811811
r, h = self._result(self._execute_request(qs))
812812
self._img_diff_error(r, h, "WMS_GetMap_Opacities2")
813813

814+
# Test OPACITIES with specific STYLES
815+
qs = "?" + "&".join(["%s=%s" % i for i in list({
816+
"MAP": urllib.parse.quote(self.projectPath),
817+
"SERVICE": "WMS",
818+
"VERSION": "1.1.1",
819+
"REQUEST": "GetMap",
820+
"LAYERS": "Country,Hello,dem",
821+
"STYLES": "origin,default,default",
822+
"FORMAT": "image/png",
823+
"BBOX": "-16817707,-4710778,5696513,14587125",
824+
"HEIGHT": "500",
825+
"WIDTH": "500",
826+
"CRS": "EPSG:3857",
827+
"OPACITIES": "125,50,150"
828+
}.items())])
829+
830+
r, h = self._result(self._execute_request(qs))
831+
self._img_diff_error(r, h, "WMS_GetMap_Opacities3")
832+
814833
def test_wms_getmap_highlight(self):
815834
# highlight layer with color separated from sld
816835
qs = "?" + "&".join(["%s=%s" % i for i in list({
Loading

0 commit comments

Comments
 (0)