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
Update tests
- Loading branch information
1 parent
7dbc96b
commit aa55beb
Showing
7 changed files
with
43 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "fields_alias", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":2, | ||
"id":"fields_alias.2", | ||
"geometry":null, | ||
"properties":{ | ||
"alias_id":3, | ||
"alias_name":"three", | ||
"utf8nameè":"three èé↓" | ||
} | ||
} | ||
]}]} | ||
}]} |
9 changes: 3 additions & 6 deletions
9
tests/testdata/qgis_server/wms_getfeatureinfo_exclude_attribute_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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "exclude_attribute", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":2, | ||
"id":"exclude_attribute.2", | ||
"geometry":null, | ||
"properties":{ | ||
"id":3, | ||
"utf8nameè":"three èé↓" | ||
} | ||
} | ||
]}]} | ||
}]} |
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
***** | ||
Content-Type: application/geo+json; charset=utf-8 | ||
|
||
{ | ||
"layers":[{ | ||
"name": "testlayer èé", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":2, | ||
"id":"testlayer èé.2", | ||
"geometry":null, | ||
"properties":{ | ||
"id":3, | ||
"name":"three", | ||
"utf8nameè":"three èé↓" | ||
} | ||
} | ||
]}]} | ||
}]} |
9 changes: 3 additions & 6 deletions
9
tests/testdata/qgis_server/wms_getfeatureinfo_geometry_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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "testlayer èé", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":2, | ||
"id":"testlayer èé.2", | ||
"geometry": | ||
{"type": "Point", "coordinates": [8.203459, 44.901395]}, | ||
"properties":{ | ||
"id":3, | ||
"name":"three", | ||
"utf8nameè":"three èé↓" | ||
} | ||
} | ||
]}]} | ||
}]} |
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{ | ||
"layers":[{ | ||
"name": "testlayer èé", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":2, | ||
"id":"testlayer èé.2", | ||
"geometry":null, | ||
"properties":{ | ||
"id":3, | ||
"name":"three", | ||
"utf8nameè":"three èé↓" | ||
} | ||
} | ||
]}]} | ||
}]} |
42 changes: 13 additions & 29 deletions
42
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 |
---|---|---|
@@ -1,74 +1,58 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "testlayer èé", | ||
"type": "FeatureCollection", | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
"type":"Feature", | ||
"id":0, | ||
"id":"testlayer èé.0", | ||
"geometry":null, | ||
"properties":{ | ||
"id":1, | ||
"name":"one", | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
},{ | ||
"type":"Feature", | ||
"id":1, | ||
"id":"testlayer èé.1", | ||
"geometry":null, | ||
"properties":{ | ||
"id":2, | ||
"name":"two", | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]},{ | ||
"name": "fields_alias", | ||
"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
},{ | ||
"type":"Feature", | ||
"id":0, | ||
"id":"fields_alias.0", | ||
"geometry":null, | ||
"properties":{ | ||
"alias_id":1, | ||
"alias_name":"one", | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
},{ | ||
"type":"Feature", | ||
"id":1, | ||
"id":"fields_alias.1", | ||
"geometry":null, | ||
"properties":{ | ||
"alias_id":2, | ||
"alias_name":"two", | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]},{ | ||
"name": "exclude_attribute", | ||
"type": "FeatureCollection", | ||
"features":[ | ||
{ | ||
},{ | ||
"type":"Feature", | ||
"id":0, | ||
"id":"exclude_attribute.0", | ||
"geometry":null, | ||
"properties":{ | ||
"id":1, | ||
"utf8nameè":"one èé" | ||
} | ||
}, | ||
{ | ||
},{ | ||
"type":"Feature", | ||
"id":1, | ||
"id":"exclude_attribute.1", | ||
"geometry":null, | ||
"properties":{ | ||
"id":2, | ||
"utf8nameè":"two àò" | ||
} | ||
} | ||
]}]} | ||
}]} |
26 changes: 15 additions & 11 deletions
26
tests/testdata/qgis_server/wms_getfeatureinfo_raster_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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
***** | ||
Content-Type: application/json; charset=utf-8 | ||
|
||
{"layers":[{ | ||
"name": "landsat", | ||
"Band 1": "125", | ||
"Band 2": "138", | ||
"Band 3": "112", | ||
"Band 4": "75", | ||
"Band 5": "90", | ||
"Band 6": "132", | ||
"Band 7": "165", | ||
"Band 8": "217", | ||
"Band 9": "175" | ||
{"type": "FeatureCollection", | ||
"features":[ | ||
{"type":"Feature", | ||
"id":"landsat", | ||
"properties":{ | ||
"Band 1": "125", | ||
"Band 2": "138", | ||
"Band 3": "112", | ||
"Band 4": "75", | ||
"Band 5": "90", | ||
"Band 6": "132", | ||
"Band 7": "165", | ||
"Band 8": "217", | ||
"Band 9": "175" | ||
} | ||
}]} |