Skip to content

Commit ef83d18

Browse files
committed
add GetMap FILTER test with multiple filters
1 parent 25c5d8d commit ef83d18

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
@@ -716,6 +716,25 @@ def test_wms_getmap_filter(self):
716716
r, h = self._result(self._execute_request(qs))
717717
self._img_diff_error(r, h, "WMS_GetMap_Filter3")
718718

719+
# display multiple features filtered from multiple layers
720+
qs = "?" + "&".join(["%s=%s" % i for i in list({
721+
"MAP": urllib.parse.quote(self.projectStatePath),
722+
"SERVICE": "WMS",
723+
"VERSION": "1.1.1",
724+
"REQUEST": "GetMap",
725+
"LAYERS": "Country,Hello,Hello_Filter_SubsetString",
726+
"STYLES": "",
727+
"FORMAT": "image/png",
728+
"BBOX": "-16817707,-4710778,5696513,14587125",
729+
"HEIGHT": "500",
730+
"WIDTH": "500",
731+
"CRS": "EPSG:3857",
732+
"FILTER": "Country: \"name\" IN ( 'arctic' , 'eurasia' );Hello: \"color\" = 'red';Hello_Filter_SubsetString: \"color\" = 'slate'"
733+
}.items())])
734+
735+
r, h = self._result(self._execute_request(qs))
736+
self._img_diff_error(r, h, "WMS_GetMap_Filter4")
737+
719738
def test_wms_getmap_filter_ogc(self):
720739
filter = "<Filter><PropertyIsEqualTo><PropertyName>name</PropertyName>" + \
721740
"<Literal>eurasia</Literal></PropertyIsEqualTo></Filter>"
Loading

0 commit comments

Comments
 (0)