mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
add server test for GetMap with styles and opacities
Covers https://issues.qgis.org/issues/15553 case
This commit is contained in:
parent
b0cd3fb5f0
commit
10cfca48d6
@ -811,6 +811,25 @@ class TestQgsServerWMSGetMap(QgsServerTestBase):
|
||||
r, h = self._result(self._execute_request(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetMap_Opacities2")
|
||||
|
||||
# Test OPACITIES with specific STYLES
|
||||
qs = "?" + "&".join(["%s=%s" % i for i in list({
|
||||
"MAP": urllib.parse.quote(self.projectPath),
|
||||
"SERVICE": "WMS",
|
||||
"VERSION": "1.1.1",
|
||||
"REQUEST": "GetMap",
|
||||
"LAYERS": "Country,Hello,dem",
|
||||
"STYLES": "origin,default,default",
|
||||
"FORMAT": "image/png",
|
||||
"BBOX": "-16817707,-4710778,5696513,14587125",
|
||||
"HEIGHT": "500",
|
||||
"WIDTH": "500",
|
||||
"CRS": "EPSG:3857",
|
||||
"OPACITIES": "125,50,150"
|
||||
}.items())])
|
||||
|
||||
r, h = self._result(self._execute_request(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetMap_Opacities3")
|
||||
|
||||
def test_wms_getmap_highlight(self):
|
||||
# highlight layer with color separated from sld
|
||||
qs = "?" + "&".join(["%s=%s" % i for i in list({
|
||||
|
BIN
tests/testdata/control_images/qgis_server/WMS_GetMap_Opacities3/WMS_GetMap_Opacities3.png
vendored
Normal file
BIN
tests/testdata/control_images/qgis_server/WMS_GetMap_Opacities3/WMS_GetMap_Opacities3.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
Loading…
x
Reference in New Issue
Block a user