@@ -1063,6 +1063,33 @@ def test_wms_getmap_highlight_point(self):
1063
1063
r , h = self ._result (self ._execute_request (qs ))
1064
1064
self ._img_diff_error (r , h , "WMS_GetMap_Highlight_Point" )
1065
1065
1066
+ # TODO make Server Getmap work with SLD Highlight feature and enable test
1067
+ @unittest .expectedFailure
1068
+ def test_wms_getmap_highlight_line (self ):
1069
+ # checks SLD stroke-width works for Lines See issue 19795 comments
1070
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
1071
+ "MAP" : urllib .parse .quote (self .projectPath ),
1072
+ "SERVICE" : "WMS" ,
1073
+ "VERSION" : "1.1.1" ,
1074
+ "REQUEST" : "GetMap" ,
1075
+ "LAYERS" : "Country_Labels" ,
1076
+ "HIGHLIGHT_GEOM" : "LINESTRING(-15000000 8055310, 2500000 8055310)" ,
1077
+ "HIGHLIGHT_SYMBOL" : "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?><StyledLayerDescriptor xmlns=\" http://www.opengis.net/sld\" xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:xsi=\" http://www.w3.org/2001/XMLSchema-instance\" version=\" 1.1.0\" xmlns:xlink=\" http://www.w3.org/1999/xlink\" xsi:schemaLocation=\" http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd\" xmlns:se=\" http://www.opengis.net/se\" ><UserStyle><se:FeatureTypeStyle><se:Rule><se:LineSymbolizer><se:Stroke><se:SvgParameter name=\" stroke\" >%23ff0000</se:SvgParameter><se:SvgParameter name=\" stroke-opacity\" >1</se:SvgParameter><se:SvgParameter name=\" stroke-width\" >17.3</se:SvgParameter><se:SvgParameter name=\" stroke-linejoin\" >bevel</se:SvgParameter></se:Stroke></se:LineSymbolizer></se:Rule></se:FeatureTypeStyle></UserStyle></StyledLayerDescriptor>" ,
1078
+ "HIGHLIGHT_LABELSTRING" : "" ,
1079
+ "HIGHLIGHT_LABELSIZE" : "10" ,
1080
+ "HIGHLIGHT_LABELCOLOR" : "black" ,
1081
+ "HIGHLIGHT_LABELBUFFERCOLOR" : "white" ,
1082
+ "HIGHLIGHT_LABELBUFFERSIZE" : "1" ,
1083
+ "STYLES" : "" ,
1084
+ "FORMAT" : "image/png" ,
1085
+ "BBOX" : "-16817707,-4710778,5696513,14587125" ,
1086
+ "HEIGHT" : "500" ,
1087
+ "WIDTH" : "500" ,
1088
+ "CRS" : "EPSG:3857"
1089
+ }.items ())])
1090
+ r , h = self ._result (self ._execute_request (qs ))
1091
+ self ._img_diff_error (r , h , "WMS_GetMap_Highlight_Line" )
1092
+
1066
1093
def test_wms_getmap_annotations (self ):
1067
1094
qs = "?" + "&" .join (["%s=%s" % i for i in list ({
1068
1095
"MAP" : urllib .parse .quote (self .projectAnnotationPath ),
0 commit comments