Skip to content

Commit

Permalink
Merge pull request #45386 from rldhont/test-server-wms-getlegendgraph…
Browse files Browse the repository at this point in the history
…ic-json-multiple-symbol

[Tests][Server] WMS GetLegendGraphic JSON for layer with multiple symbols
  • Loading branch information
pblottiere committed Oct 5, 2021
2 parents 1cba45b + 5f0c7cd commit 3263d96
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/src/python/test_qgsserver_wms_getlegendgraphic.py
Expand Up @@ -1015,6 +1015,13 @@ def test_wms_GetLegendGraphic_JSON_multiple_layers(self):
"&FORMAT=application/json",
"wms_getlegendgraphic_json_multiple_layers")

def test_wms_GetLegendGraphic_JSON_multiple_symbol(self):
self.wms_request_compare("GetLegendGraphic",
"&LAYERS=cdb_lines"
"&FORMAT=application/json",
"wms_getlegendgraphic_json_multiple_symbol",
'test_project_wms_grouped_layers.qgs')

def testJsonSymbolMaxMinScale(self):
"""Test min/max scale in symbol json export"""

Expand Down
@@ -0,0 +1,22 @@
*****
Content-Type: application/json

{
"nodes": [
{
"symbols": [
{
"icon": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAAKUlEQVQ4jWP0c/v/n4ESQIkBfm7//zNRZDsDA8OoAaMGjBoAAYyUZmcAMb0KZdjI3VIAAAAASUVORK5CYII=",
"title": "Ortsteil"
},
{
"icon": "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAAKklEQVQ4jWOcOeX/fwZKACUGzJzy/z8TRbYzMDCMGjBqwKgBEMBIaXYGACyFDMn+2JVEAAAAAElFTkSuQmCC",
"title": "Stadtteil"
}
],
"title": "cdb_lines",
"type": "layer"
}
],
"title": ""
}

0 comments on commit 3263d96

Please sign in to comment.