@@ -1407,6 +1407,47 @@ def test_wms_getprint_selection(self):
1407
1407
r , h = self ._result (self ._execute_request (qs ))
1408
1408
self ._img_diff_error (r , h , "WMS_GetPrint_Selection" )
1409
1409
1410
+ def test_wms_getprint_opacity (self ):
1411
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
1412
+ "MAP" : urllib .parse .quote (self .projectPath ),
1413
+ "SERVICE" : "WMS" ,
1414
+ "VERSION" : "1.1.1" ,
1415
+ "REQUEST" : "GetPrint" ,
1416
+ "TEMPLATE" : "layoutA4" ,
1417
+ "FORMAT" : "png" ,
1418
+ "map0:EXTENT" : "-33626185.498,-13032965.185,33978427.737,16020257.031" ,
1419
+ "map0:LAYERS" : "Country,Hello" ,
1420
+ "HEIGHT" : "500" ,
1421
+ "WIDTH" : "500" ,
1422
+ "CRS" : "EPSG:3857" ,
1423
+ "SELECTION" : "Country: 4" ,
1424
+ "LAYERS" : "Country,Hello" ,
1425
+ "OPACITIES" : "125,125"
1426
+ }.items ())])
1427
+
1428
+ r , h = self ._result (self ._execute_request (qs ))
1429
+ self ._img_diff_error (r , h , "WMS_GetPrint_Opacity" )
1430
+
1431
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
1432
+ "MAP" : urllib .parse .quote (self .projectPath ),
1433
+ "SERVICE" : "WMS" ,
1434
+ "VERSION" : "1.1.1" ,
1435
+ "REQUEST" : "GetPrint" ,
1436
+ "TEMPLATE" : "layoutA4" ,
1437
+ "FORMAT" : "png" ,
1438
+ "map0:EXTENT" : "-33626185.498,-13032965.185,33978427.737,16020257.031" ,
1439
+ "map0:LAYERS" : "Country,Hello" ,
1440
+ "HEIGHT" : "500" ,
1441
+ "WIDTH" : "500" ,
1442
+ "CRS" : "EPSG:3857" ,
1443
+ "SELECTION" : "Country: 4" ,
1444
+ "LAYERS" : "Country,Hello" ,
1445
+ "OPACITIES" : "125%2C125"
1446
+ }.items ())])
1447
+
1448
+ r , h = self ._result (self ._execute_request (qs ))
1449
+ self ._img_diff_error (r , h , "WMS_GetPrint_Opacity" )
1450
+
1410
1451
def test_wms_getprint_highlight (self ):
1411
1452
# default style
1412
1453
qs = "?" + "&" .join (["%s=%s" % i for i in list ({
0 commit comments