-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assert response of Get Workspace Map File
- Loading branch information
Showing
3 changed files
with
182 additions
and
1 deletion.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
tests/dynamic_data/publications/map_by_schema_version/exp_2_0_0_map_file.json
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,83 @@ | ||
{ | ||
"describedBy": "https://raw.githubusercontent.com/hslayers/map-compositions/2.0.0/schema.json", | ||
"schema_version": "2.0.0", | ||
"abstract": "World places and boundaries abstract", | ||
"title": "map_v2_0_0_post", | ||
"extent": [ | ||
-35.0, | ||
-48.5, | ||
179, | ||
81.5 | ||
], | ||
"nativeExtent": [ | ||
-3896182.18, | ||
-6190443.81, | ||
19926188.85, | ||
16579785.82 | ||
], | ||
"projection": "epsg:3857", | ||
"layers": [ | ||
{ | ||
"metadata": {}, | ||
"visibility": true, | ||
"opacity": 1, | ||
"title": "Definiční body administrativních celků", | ||
"className": "HSLayers.Layer.WMS", | ||
"singleTile": true, | ||
"wmsMaxScale": 0, | ||
"legends": [ | ||
"https%3A%2F%2Fgeoportal.kraj-lbc.cz%2Fcgi-bin%2Fmapserv%3Fmap%3D%2Fdata%2Fgis%2FMapServer%2Fprojects%2Fwms%2Fatlas%2Fadministrativni_cleneni.map%26version%3D1.3.0%26service%3DWMS%26request%3DGetLegendGraphic%26sld_version%3D1.1.0%26layer%3Ddefinicni_body_administrativnich_celku%26format%3Dimage%2Fpng%26STYLE%3Ddefault" | ||
], | ||
"maxResolution": null, | ||
"minResolution": 0, | ||
"url": "https://geoportal.kraj-lbc.cz/cgi-bin/mapserv?map=/data/gis/MapServer/projects/wms/atlas/administrativni_cleneni.map&", | ||
"params": { | ||
"LAYERS": "definicni_body_administrativnich_celku", | ||
"INFO_FORMAT": "application/vnd.ogc.gml", | ||
"FORMAT": "image/png", | ||
"FROMCRS": "EPSG:3857", | ||
"VERSION": "1.3.0" | ||
}, | ||
"dimensions": {} | ||
}, | ||
{ | ||
"metadata": {}, | ||
"visibility": true, | ||
"opacity": 1, | ||
"title": "Hranice", | ||
"className": "HSLayers.Layer.WMS", | ||
"singleTile": true, | ||
"url": "https://enjoychallenge.tech/new-client-proxy/geoserver/test_map_json_workspace_wms/ows", | ||
"params": { | ||
"LAYERS": "hranice", | ||
"FORMAT": "image/png" | ||
} | ||
}, | ||
{ | ||
"className": "OpenLayers.Layer.Vector", | ||
"dimensions": {}, | ||
"legends": [ | ||
"" | ||
], | ||
"maxResolution": null, | ||
"metadata": {}, | ||
"minResolution": 0, | ||
"name": "mista", | ||
"opacity": 1, | ||
"protocol": { | ||
"format": "hs.format.WFS", | ||
"url": "https://enjoychallenge.tech/new-client-proxy/geoserver/test_map_json_workspace/wfs" | ||
}, | ||
"ratio": 1.5, | ||
"singleTile": true, | ||
"title": "Mista", | ||
"visibility": false, | ||
"wmsMaxScale": 0 | ||
} | ||
], | ||
"name": "map_v2_0_0_post", | ||
"user": { | ||
"email": "", | ||
"name": "test_map_json_workspace" | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
tests/dynamic_data/publications/map_by_schema_version/exp_3_0_0_map_file.json
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,81 @@ | ||
{ | ||
"describedBy": "https://raw.githubusercontent.com/hslayers/map-compositions/3.0.0/schema.json", | ||
"schema_version": "2.0.0", | ||
"abstract": "World places and boundaries abstract", | ||
"title": "map_v3_0_0_post", | ||
"name": "map_v3_0_0_post", | ||
"extent": [ | ||
-35.0, | ||
-48.5, | ||
179, | ||
81.5 | ||
], | ||
"nativeExtent": [ | ||
-3896182.18, | ||
-6190443.81, | ||
19926188.85, | ||
16579785.82 | ||
], | ||
"projection": "epsg:3857", | ||
"layers": [ | ||
{ | ||
"metadata": {}, | ||
"visibility": true, | ||
"opacity": 1, | ||
"title": "Defini\u010dn\u00ed body administrativn\u00edch celk\u016f", | ||
"className": "WMS", | ||
"singleTile": true, | ||
"wmsMaxScale": 0, | ||
"legends": [ | ||
"https://geoportal.kraj-lbc.cz/cgi-bin/mapserv?map=/data/gis/MapServer/projects/wms/atlas/administrativni_cleneni.map&version=1.3.0&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=definicni_body_administrativnich_celku&format=image/png&STYLE=default" | ||
], | ||
"maxResolution": null, | ||
"minResolution": 0, | ||
"url": "https://geoportal.kraj-lbc.cz/cgi-bin/mapserv?map=/data/gis/MapServer/projects/wms/atlas/administrativni_cleneni.map&", | ||
"params": { | ||
"LAYERS": "definicni_body_administrativnich_celku", | ||
"INFO_FORMAT": "application\/vnd.ogc.gml", | ||
"FORMAT": "image\/png", | ||
"FROMCRS": "EPSG:3857", | ||
"VERSION": "1.3.0" | ||
}, | ||
"dimensions": {} | ||
}, | ||
{ | ||
"metadata": {}, | ||
"visibility": true, | ||
"opacity": 1, | ||
"title": "Hranice", | ||
"className": "WMS", | ||
"singleTile": true, | ||
"url": "https://enjoychallenge.tech/new-client-proxy/geoserver/test_map_json_workspace_wms/ows", | ||
"params": { | ||
"LAYERS": "hranice", | ||
"FORMAT": "image\/png" | ||
} | ||
}, | ||
{ | ||
"className": "Vector", | ||
"dimensions": {}, | ||
"legends": [], | ||
"maxResolution": null, | ||
"metadata": {}, | ||
"minResolution": 0, | ||
"name": "mista", | ||
"opacity": 1, | ||
"protocol": { | ||
"format": "WFS", | ||
"url": "https://enjoychallenge.tech/new-client-proxy/geoserver/test_map_json_workspace/wfs" | ||
}, | ||
"ratio": 1.5, | ||
"singleTile": true, | ||
"title": "Mista", | ||
"visibility": false, | ||
"wmsMaxScale": 0 | ||
} | ||
], | ||
"user": { | ||
"email": "", | ||
"name": "test_map_json_workspace" | ||
} | ||
} |
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