summaryrefslogtreecommitdiffstats
path: root/petascope/test/testcases-wcst
diff options
context:
space:
mode:
Diffstat (limited to 'petascope/test/testcases-wcst')
-rw-r--r--petascope/test/testcases-wcst/CoverageDescriptions1.xml29
-rw-r--r--petascope/test/testcases-wcst/CoverageDescriptions2.xml38
-rw-r--r--petascope/test/testcases-wcst/CoverageSummary1.xml6
-rw-r--r--petascope/test/testcases-wcst/CoverageSummary2.xml6
-rw-r--r--petascope/test/testcases-wcst/Transaction1-async.xml30
-rw-r--r--petascope/test/testcases-wcst/Transaction1.xml27
-rw-r--r--petascope/test/testcases-wcst/Transaction2.xml37
-rw-r--r--petascope/test/testcases-wcst/Transaction3.xml21
8 files changed, 194 insertions, 0 deletions
diff --git a/petascope/test/testcases-wcst/CoverageDescriptions1.xml b/petascope/test/testcases-wcst/CoverageDescriptions1.xml
new file mode 100644
index 0000000..b9cabba
--- /dev/null
+++ b/petascope/test/testcases-wcst/CoverageDescriptions1.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<ns2:CoverageDescriptions xmlns="http://www.opengis.net/ows" xmlns:ns2="http://www.opengis.net/wcs/1.1" xmlns:ns3="http://www.opengis.net/wcs/1.1/ows" xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns5="http://www.opengis.net/gml" xmlns:ns6="http://www.w3.org/2001/SMIL20/" xmlns:ns7="http://www.w3.org/2001/SMIL20/Language" xmlns:ns8="http://www.opengis.net/ows">
+ <ns2:CoverageDescription>
+ <Title>Title 1 (Descriptions)</Title>
+ <Abstract>Test coverage (Description)</Abstract>
+ <ns2:Identifier>coverage_1</ns2:Identifier>
+ <ns2:Domain>
+ <ns2:SpatialDomain>
+ <ns8:BoundingBox>
+ <ns8:LowerCorner>0.0 0.0</ns8:LowerCorner>
+ <ns8:UpperCorner>399.0 343.0</ns8:UpperCorner>
+ </ns8:BoundingBox>
+ </ns2:SpatialDomain>
+ </ns2:Domain>
+ <ns2:Range>
+ <ns2:Field>
+ <ns2:Identifier>red</ns2:Identifier>
+ <ns2:Definition>
+ <ns3:DataType>unsigned short</ns3:DataType>
+ </ns2:Definition>
+ <ns3:InterpolationMethods>
+ <ns3:DefaultMethod nullResistance="none">none</ns3:DefaultMethod>
+ </ns3:InterpolationMethods>
+ </ns2:Field>
+ </ns2:Range>
+ <ns2:SupportedCRS></ns2:SupportedCRS>
+ <ns2:SupportedFormat>text/xml</ns2:SupportedFormat>
+ </ns2:CoverageDescription>
+</ns2:CoverageDescriptions>
diff --git a/petascope/test/testcases-wcst/CoverageDescriptions2.xml b/petascope/test/testcases-wcst/CoverageDescriptions2.xml
new file mode 100644
index 0000000..151e99c
--- /dev/null
+++ b/petascope/test/testcases-wcst/CoverageDescriptions2.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<ns2:CoverageDescriptions xmlns="http://www.opengis.net/ows" xmlns:ns2="http://www.opengis.net/wcs/1.1" xmlns:ns3="http://www.opengis.net/wcs/1.1/ows" xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns5="http://www.opengis.net/gml" xmlns:ns6="http://www.w3.org/2001/SMIL20/" xmlns:ns7="http://www.w3.org/2001/SMIL20/Language" xmlns:ns8="http://www.opengis.net/ows">
+ <ns2:CoverageDescription>
+ <Title>Title 2 (Descriptions)</Title>
+ <Abstract>Test coverage (Description)</Abstract>
+ <ns2:Identifier>coverage_2</ns2:Identifier>
+ <ns2:Domain>
+ <ns2:SpatialDomain>
+ <ns8:BoundingBox>
+ <ns8:LowerCorner>0.0 0.0</ns8:LowerCorner>
+ <ns8:UpperCorner>399.0 343.0</ns8:UpperCorner>
+ </ns8:BoundingBox>
+ </ns2:SpatialDomain>
+ </ns2:Domain>
+ <ns2:Range>
+ <ns2:Field>
+ <ns2:Identifier>red</ns2:Identifier>
+ <ns2:Definition>
+ <ns3:DataType>unsigned short</ns3:DataType>
+ </ns2:Definition>
+ <ns3:InterpolationMethods>
+ <ns3:DefaultMethod nullResistance="none">none</ns3:DefaultMethod>
+ </ns3:InterpolationMethods>
+ </ns2:Field>
+ <ns2:Field>
+ <ns2:Identifier>blue</ns2:Identifier>
+ <ns2:Definition>
+ <ns3:DataType>weird</ns3:DataType>
+ </ns2:Definition>
+ <ns3:InterpolationMethods>
+ <ns3:DefaultMethod nullResistance="none">none</ns3:DefaultMethod>
+ </ns3:InterpolationMethods>
+ </ns2:Field>
+ </ns2:Range>
+ <ns2:SupportedCRS></ns2:SupportedCRS>
+ <ns2:SupportedFormat>text/xml</ns2:SupportedFormat>
+ </ns2:CoverageDescription>
+</ns2:CoverageDescriptions>
diff --git a/petascope/test/testcases-wcst/CoverageSummary1.xml b/petascope/test/testcases-wcst/CoverageSummary1.xml
new file mode 100644
index 0000000..651d4fe
--- /dev/null
+++ b/petascope/test/testcases-wcst/CoverageSummary1.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<ns2:CoverageSummary xmlns="http://www.opengis.net/ows" xmlns:ns2="http://www.opengis.net/wcs/1.1" xmlns:ns3="http://www.opengis.net/wcs/1.1/ows" xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns5="http://www.opengis.net/gml" xmlns:ns6="http://www.w3.org/2001/SMIL20/" xmlns:ns7="http://www.w3.org/2001/SMIL20/Language" version="1.1.0">
+ <Title>Title1</Title>
+ <Abstract>Abstract1 (Summary)</Abstract>
+ <Identifier xmlns:ns8="http://www.opengis.net/ows" xmlns="">coverage_1</Identifier>
+</ns2:CoverageSummary>
diff --git a/petascope/test/testcases-wcst/CoverageSummary2.xml b/petascope/test/testcases-wcst/CoverageSummary2.xml
new file mode 100644
index 0000000..78a78d9
--- /dev/null
+++ b/petascope/test/testcases-wcst/CoverageSummary2.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<ns2:CoverageSummary xmlns="http://www.opengis.net/ows" xmlns:ns2="http://www.opengis.net/wcs/1.1" xmlns:ns3="http://www.opengis.net/wcs/1.1/ows" xmlns:ns4="http://www.w3.org/1999/xlink" xmlns:ns5="http://www.opengis.net/gml" xmlns:ns6="http://www.w3.org/2001/SMIL20/" xmlns:ns7="http://www.w3.org/2001/SMIL20/Language" version="1.1.0">
+ <Title>Title2</Title>
+ <Abstract>Abstract2 (Summary)</Abstract>
+ <Identifier xmlns:ns8="http://www.opengis.net/ows" xmlns="">coverage_2</Identifier>
+</ns2:CoverageSummary>
diff --git a/petascope/test/testcases-wcst/Transaction1-async.xml b/petascope/test/testcases-wcst/Transaction1-async.xml
new file mode 100644
index 0000000..ba626ab
--- /dev/null
+++ b/petascope/test/testcases-wcst/Transaction1-async.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Document : Transaction1.xml
+ Created on : March 16, 2009, 10:37 PM
+ Author : Andrei
+ Description:
+ Test operation Transaction of WCS, action ADD: add one coverage to the WCS server, asynchroneously !
+-->
+<Transaction xmlns="http://www.opengis.net/wcs/1.1/wcst"
+xmlns:xlink="http://www.w3.org/1999/xlink"
+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/wcst ../../src/conf/xml-resources/jaxb/WCS-Transaction Schema/wcstTransaction.xsd"
+service="WCS" version="1.1">
+ <InputCoverages>
+ <Coverage>
+ <ows:Identifier codeSpace="TBD">coverage_1</ows:Identifier>
+ <ows:Reference xlink:href="http://localhost/peta/flickr1.jpg"
+ xlink:role="urn:ogc:def:role:WCS:1.1:Pixels"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageDescriptions1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageDescription"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageSummary1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageSummary"/>
+ <Action>Add</Action>
+ </Coverage>
+ </InputCoverages>
+ <ResponseHandler>
+ http://localhost:8080/PetaScope/WCPService
+ </ResponseHandler>
+</Transaction>
diff --git a/petascope/test/testcases-wcst/Transaction1.xml b/petascope/test/testcases-wcst/Transaction1.xml
new file mode 100644
index 0000000..bc99400
--- /dev/null
+++ b/petascope/test/testcases-wcst/Transaction1.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Document : Transaction1.xml
+ Created on : March 16, 2009, 10:37 PM
+ Author : Andrei
+ Description:
+ Test operation Transaction of WCS, action ADD: add one coverage to the WCS server.
+-->
+<Transaction xmlns="http://www.opengis.net/wcs/1.1/wcst"
+xmlns:xlink="http://www.w3.org/1999/xlink"
+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/wcst ../../src/conf/xml-resources/jaxb/WCS-Transaction Schema/wcstTransaction.xsd"
+service="WCS" version="1.1">
+ <InputCoverages>
+ <Coverage>
+ <ows:Identifier codeSpace="TBD">coverage_1</ows:Identifier>
+ <ows:Reference xlink:href="http://localhost/peta/flickr1.jpg"
+ xlink:role="urn:ogc:def:role:WCS:1.1:Pixels"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageDescriptions1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageDescription"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageSummary1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageSummary"/>
+ <Action>Add</Action>
+ </Coverage>
+ </InputCoverages>
+</Transaction>
diff --git a/petascope/test/testcases-wcst/Transaction2.xml b/petascope/test/testcases-wcst/Transaction2.xml
new file mode 100644
index 0000000..6f14c39
--- /dev/null
+++ b/petascope/test/testcases-wcst/Transaction2.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Document : Transaction1.xml
+ Created on : March 16, 2009, 10:37 PM
+ Author : Andrei
+ Description:
+ Test operation Transaction of WCS, action ADD: add multiple coverages.
+-->
+<Transaction xmlns="http://www.opengis.net/wcs/1.1/wcst"
+xmlns:xlink="http://www.w3.org/1999/xlink"
+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/wcst ../../src/conf/xml-resources/jaxb/WCS-Transaction Schema/wcstTransaction.xsd"
+service="WCS" version="1.1">
+ <InputCoverages>
+ <Coverage>
+ <ows:Identifier codeSpace="TBD">coverage_1</ows:Identifier>
+ <ows:Reference xlink:href="http://localhost/peta/flickr1.jpg"
+ xlink:role="urn:ogc:def:role:WCS:1.1:Pixels"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageDescriptions1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageDescription"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageSummary1.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageSummary"/>
+ <Action>Add</Action>
+ </Coverage>
+ <Coverage>
+ <ows:Identifier codeSpace="TBD">coverage_2</ows:Identifier>
+ <ows:Reference xlink:href="http://localhost/peta/flickr1.jpg"
+ xlink:role="urn:ogc:def:role:WCS:1.1:Pixels"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageDescriptions2.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageDescription"/>
+ <ows:Reference xlink:href="http://localhost/peta/CoverageSummary2.xml"
+ xlink:role="urn:ogc:def:role:WCS:1.1:CoverageSummary"/>
+ <Action>Add</Action>
+ </Coverage>
+ </InputCoverages>
+</Transaction>
diff --git a/petascope/test/testcases-wcst/Transaction3.xml b/petascope/test/testcases-wcst/Transaction3.xml
new file mode 100644
index 0000000..4bf4b99
--- /dev/null
+++ b/petascope/test/testcases-wcst/Transaction3.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Document : Transaction1.xml
+ Created on : March 16, 2009, 10:37 PM
+ Author : Andrei
+ Description:
+ Test operation Transaction of WCS, action DELETE one coverage.
+-->
+<Transaction xmlns="http://www.opengis.net/wcs/1.1/wcst"
+xmlns:xlink="http://www.w3.org/1999/xlink"
+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/wcst ../../src/conf/xml-resources/jaxb/WCS-Transaction Schema/wcstTransaction.xsd"
+service="WCS" version="1.1">
+ <InputCoverages>
+ <Coverage>
+ <ows:Identifier codeSpace="TBD">coverage_1</ows:Identifier>
+ <Action>Delete</Action>
+ </Coverage>
+ </InputCoverages>
+</Transaction>