Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Tests][Server] WMS GetLegendGraphic JSON for layer with multiple sym…
…bols

Add a test for WMS GetLegendGraphic to JSOn format for a vector layer with multiple symbols
  • Loading branch information
rldhont authored and nyalldawson committed Oct 7, 2021
1 parent 911db82 commit dce904e
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 @@ -1002,6 +1002,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')


if __name__ == '__main__':
unittest.main()
@@ -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 dce904e

Please sign in to comment.