Skip to content

Commit 1955ebb

Browse files
committedSep 21, 2018
server disabled test for failing getmap req with Line sld
1 parent f125d3f commit 1955ebb

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
 

‎tests/src/python/test_qgsserver_wms_getmap.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,33 @@ def test_wms_getmap_highlight_point(self):
10631063
r, h = self._result(self._execute_request(qs))
10641064
self._img_diff_error(r, h, "WMS_GetMap_Highlight_Point")
10651065

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+
10661093
def test_wms_getmap_annotations(self):
10671094
qs = "?" + "&".join(["%s=%s" % i for i in list({
10681095
"MAP": urllib.parse.quote(self.projectAnnotationPath),

0 commit comments

Comments
 (0)
Please sign in to comment.