Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add unit test with multiple layers and features for json
- Loading branch information
1 parent
5ef1139
commit 2f683fc
Showing
2 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
tests/testdata/qgis_server/wms_getfeatureinfo_multiple_json.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "testlayer èé", | ||
"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":0, | ||
"geometry":null, | ||
"properties":{ | ||
"id":1, | ||
"name":"one", | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
"type":"Feature", | ||
"id":1, | ||
"geometry":null, | ||
"properties":{ | ||
"id":2, | ||
"name":"two", | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]},{ | ||
"name": "fields_alias", | ||
"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":0, | ||
"geometry":null, | ||
"properties":{ | ||
"alias_id":1, | ||
"alias_name":"one", | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
"type":"Feature", | ||
"id":1, | ||
"geometry":null, | ||
"properties":{ | ||
"alias_id":2, | ||
"alias_name":"two", | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]},{ | ||
"name": "exclude_attribute", | ||
"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":0, | ||
"geometry":null, | ||
"properties":{ | ||
"id":1, | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
"type":"Feature", | ||
"id":1, | ||
"geometry":null, | ||
"properties":{ | ||
"id":2, | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]}]} |