Re: [wcsplus] more on asynchronous response

Hi Adit,

I understand that you took this more or less from the WPS spec. How closely does it follow the spec - did you make any alterations?

Cheers
Dom

On Friday 26 October 2007 15:27, Adit Santokhee wrote:
Hi all,

We have implemented a WCS that handles asynchronous data delivery. This was
done in the context of a project called DEWS, www.dews.org.uk. Our solution
is as follows:


The GetCoverage request URL is as follows:


Semi-synchronous data delivery (STATUS=FALSE)


http://dexter.nerc-essc.ac.uk:9080/MarineDataService/GadsWCS?SERVICE=WCS&VER
SION=1.0.0&REQUEST=GetCoverage&COVERAGE=MERSEA_NATL_ANAL/salinity&BBOX=-75,5
,13,50,5,5&TIME=22-09-2004%2000:00:00/24-09-2004%2000:00:00/P1D&FORMAT=CF-n
e tCDF&WIDTH=1&HEIGHT=1&DEPTH=1&CRS=NDG:LonLatPressureCRS&STATUS=FALSE


This returns the following document:


  <?xml version="1.0" encoding="UTF-8" ?>
  <  GadsWcs>

<url>http://dexter.nerc-essc.ac.uk:9080/DataManager/GetData?id=5055</url>
  </GadsWcs>


Data can be downloaded from
http://dexter.nerc-essc.ac.uk:9080/DataManager/GetData?id=5055



Asynchronous data delivery (STATUS=TRUE)

http://dexter.nerc-essc.ac.uk:9080/MarineDataService/GadsWCS?SERVICE=WCS&VE
R
SION=1.0.0&REQUEST=GetCoverage&COVERAGE=MERSEA_NATL_ANAL/salinity&BBOX=-75,
5
,13,50,5,5&TIME=22-09-2004%2000:00:00/24-09-2004%2000:00:00/P1D&FORMAT=CF-n
e tCDF&WIDTH=1&HEIGHT=1&DEPTH=1&CRS=NDG:LonLatPressureCRS&STATUS=TRUE


This returns an XML document with the following piece of information:


  <?xml version="1.0" encoding="UTF-8" ?>
  <GadsWcs>
    <Status>
      <ProcessStarted>Process has started execution !</ProcessStarted>
      <JobID>5054</JobID>

<URL>http://dexter.nerc-essc.ac.uk:9080/MarineDataService/PollingManager?id
= 5054</URL>
  <EstimatedSize>2.292216</EstimatedSize>
    </Status>
  </GadsWcs>




The user can poll on the URL in the XML document above for progress:



  <?xml version="1.0" encoding="UTF-8" ?>

- <  GadsWcs>

- <            Status>

  <                     JobID>5054</JobID>

  <                     TimeCompleted>2007-07-06 14:59:36.0</TimeCompleted>

  <                      DataExtracted>2.297008</DataExtracted>

            </Status>

  </GadsWcs>


If the data isn't ready yet for download, TimeCompleted is null. Finally
data can be downloaded using the following:


http://dexter.nerc-essc.ac.uk:9080/DataManager/GetData?id=5054


Cheers,
Adit