summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/Format/WCSGetCoverage.html
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
committerChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
commite30f267181d990947e67909de4809fa941698c85 (patch)
tree46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/tests/Format/WCSGetCoverage.html
parente763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff)
downloadpostrunner-e30f267181d990947e67909de4809fa941698c85.zip
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/Format/WCSGetCoverage.html')
-rw-r--r--misc/openlayers/tests/Format/WCSGetCoverage.html80
1 files changed, 0 insertions, 80 deletions
diff --git a/misc/openlayers/tests/Format/WCSGetCoverage.html b/misc/openlayers/tests/Format/WCSGetCoverage.html
deleted file mode 100644
index 6379b2b..0000000
--- a/misc/openlayers/tests/Format/WCSGetCoverage.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<html>
-<head>
- <script src="../OLLoader.js"></script>
- <script type="text/javascript">
-
- function test_write_WCSGetCoverage(t) {
- t.plan(1);
- var expected = '<?xml version="1.0" encoding="UTF-8"?>' +
-'<GetCoverage xmlns="http://www.opengis.net/wcs/1.1" xmlns:ows="http://www.opengis.net/ows/1.1"' +
-' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' +
-' xsi:schemaLocation="http://www.opengis.net/wcs/1.1 http://schemas.opengis.net/wcs/1.1/wcsGetCoverage.xsd"' +
-' service="WCS" version="1.1.2">' +
-' <ows:Identifier>Cov123</ows:Identifier>' +
-' <DomainSubset>' +
-' <ows:BoundingBox crs="urn:ogc:def:crs:OGC:2:84">' +
-' <ows:LowerCorner>-71 47</ows:LowerCorner>' +
-' <ows:UpperCorner>-66 51</ows:UpperCorner>' +
-' </ows:BoundingBox>' +
-' <TemporalSubset>' +
-' <TimePeriod>' +
-' <BeginPosition>2006-08-01</BeginPosition>' +
-' <EndPosition>2006-09-01</EndPosition>' +
-' <TimeResolution>P1D</TimeResolution>' +
-' </TimePeriod>' +
-' <TimePeriod>' +
-' <BeginPosition>2007-08-01</BeginPosition>' +
-' <EndPosition>2007-09-01</EndPosition>' +
-' <TimeResolution>P1D</TimeResolution>' +
-' </TimePeriod>' +
-' </TemporalSubset>' +
-' </DomainSubset>' +
-' <Output format="image/netcdf">' +
-' <GridCRS>' +
-' <GridBaseCRS>urn:ogc:def:crs:EPSG:6.6:32618</GridBaseCRS>' +
-' <GridType>urn:ogc:def:method:WCS:1.1:2dGridin2dCrs</GridType>' +
-' <GridOrigin>3000 4000</GridOrigin>' +
-' <GridOffsets>6.0 8.0 -8.0 6.0</GridOffsets>' +
-' <GridCS>urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS</GridCS>' +
-' </GridCRS>' +
-' </Output>' +
-'</GetCoverage>';
-
- var format = new OpenLayers.Format.WCSGetCoverage();
- var result = format.write({
- identifier: 'Cov123',
- domainSubset: {
- boundingBox: {projection: 'urn:ogc:def:crs:OGC:2:84', bounds: new OpenLayers.Bounds(-71, 47, -66, 51)},
- temporalSubset: {
- timePeriods: [
- {
- begin: '2006-08-01',
- end: '2006-09-01',
- resolution: 'P1D'
- }, {
- begin: '2007-08-01',
- end: '2007-09-01',
- resolution: 'P1D'
- }
- ]
- }
- },
- output: {
- format: 'image/netcdf',
- gridCRS: {
- baseCRS: 'urn:ogc:def:crs:EPSG:6.6:32618',
- type: 'urn:ogc:def:method:WCS:1.1:2dGridin2dCrs',
- origin: '3000 4000',
- offsets: '6.0 8.0 -8.0 6.0',
- CS: 'urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS'
- }
- }
- });
- t.xml_eq(result, expected, "WCS GetCoverage written out correctly");
- }
-
- </script>
-</head>
-<body>
-</body>
-</html>