@@ -702,7 +702,7 @@ def test_wms_getmap_style(self):
702
702
r , h = self ._result (self ._execute_request (qs ))
703
703
self ._img_diff_error (r , h , "WMS_GetMap_StyleDefault" )
704
704
705
- # custom style
705
+ # custom style with STYLES parameter
706
706
qs = "?" + "&" .join (["%s=%s" % i for i in list ({
707
707
"MAP" : urllib .parse .quote (self .projectPath ),
708
708
"SERVICE" : "WMS" ,
@@ -720,6 +720,24 @@ def test_wms_getmap_style(self):
720
720
r , h = self ._result (self ._execute_request (qs ))
721
721
self ._img_diff_error (r , h , "WMS_GetMap_StyleCustom" )
722
722
723
+ # custom style with STYLE parameter
724
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
725
+ "MAP" : urllib .parse .quote (self .projectPath ),
726
+ "SERVICE" : "WMS" ,
727
+ "VERSION" : "1.1.1" ,
728
+ "REQUEST" : "GetMap" ,
729
+ "LAYERS" : "Country_Labels" ,
730
+ "STYLE" : "custom" ,
731
+ "FORMAT" : "image/png" ,
732
+ "BBOX" : "-16817707,-4710778,5696513,14587125" ,
733
+ "HEIGHT" : "500" ,
734
+ "WIDTH" : "500" ,
735
+ "CRS" : "EPSG:3857"
736
+ }.items ())])
737
+
738
+ r , h = self ._result (self ._execute_request (qs ))
739
+ self ._img_diff_error (r , h , "WMS_GetMap_StyleCustom" )
740
+
723
741
def test_wms_getmap_filter (self ):
724
742
qs = "?" + "&" .join (["%s=%s" % i for i in list ({
725
743
"MAP" : urllib .parse .quote (self .projectPath ),
0 commit comments