Skip to content
Permalink
Browse files

Merge pull request #5044 from pblottiere/server_bugfix_ogc_getcapa_st…

…yles

[server][bugfix] Fixes OGC test on legendurl styles
  • Loading branch information
rldhont committed Aug 24, 2017
2 parents 835e6d2 + 465b27a commit 0dbf432cbc311b8fe326bf3411ed1e4516e5ff49
Showing with 20 additions and 2 deletions.
  1. +1 −1 src/server/services/wms/qgswmsparameters.cpp
  2. +19 −1 tests/src/python/test_qgsserver_wms.py
@@ -362,7 +362,7 @@ namespace QgsWms
QVariant( "" ),
QVariant()
};
save( pLayers );
save( pStyle );

const Parameter pStyles = { ParameterName::STYLES,
QVariant::String,
@@ -702,7 +702,7 @@ def test_wms_getmap_style(self):
r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetMap_StyleDefault")

# custom style
# custom style with STYLES parameter
qs = "?" + "&".join(["%s=%s" % i for i in list({
"MAP": urllib.parse.quote(self.projectPath),
"SERVICE": "WMS",
@@ -720,6 +720,24 @@ def test_wms_getmap_style(self):
r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetMap_StyleCustom")

# custom style with STYLE parameter
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_Labels",
"STYLE": "custom",
"FORMAT": "image/png",
"BBOX": "-16817707,-4710778,5696513,14587125",
"HEIGHT": "500",
"WIDTH": "500",
"CRS": "EPSG:3857"
}.items())])

r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetMap_StyleCustom")

def test_wms_getmap_filter(self):
qs = "?" + "&".join(["%s=%s" % i for i in list({
"MAP": urllib.parse.quote(self.projectPath),

0 comments on commit 0dbf432

Please sign in to comment.
You can’t perform that action at this time.