angle-left COPA WPS Layer

GetResult Operation

Request

This operation is a POST request. The request body represents an Execute request where the identifier represents the JobId retrieved from the Execute Response.

In the following example we will be getting the result of the processed launched in our Execute section.

curl command:

curl -X POST "https://copa-backend.biomass-maap.com/wps/getResult" -H "accept: application/xml" -H "Content-Type: application/xml" -d "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><GetResult service=\"WPS\" version=\"2.0.0\" xmlns:xlin=\"http://www.w3.org/1999/xlink\" xmlns:wfs=\"http://www.opengis.net/wfs/2.1\" xmlns:sld=\"http://www.opengis.net/sld/1.2\" xmlns:ows=\"http://www.opengis.net/ows/2.0\" xmlns:kml=\"http://www.opengis.net/kml/2.2\" xmlns:ns8=\"http://www.opengis.net/se/2.0/core\" xmlns:ns13=\"http://www.opengis.net/gml\" xmlns:ns9=\"http://www.opengis.net/fes/2.1\" xmlns:ns12=\"http://www.opengis.net/ows-context\" xmlns:ns11=\"http://www.opengis.net/se/2.0/raster\" xmlns:ns10=\"http://www.opengis.net/se/2.0/thematic\" xmlns:ns16=\"urn:oasis:names:tc:ciq:xsdschema:xAL:2.0\" xmlns:ns15=\"http://www.w3.org/2005/Atom\" xmlns:wps=\"http://www.opengis.net/wps/2.0\" xmlns:ns14=\"http://www.w3.org/2001/SMIL20/\" xmlns:wms=\"http://www.opengis.net/wms\" xmlns:ns18=\"http://www.w3.org/2001/SMIL20/Language\"> <wps:JobID>5d4934281bc8b00001804f03</wps:JobID></GetResult>"

Response

The GetResult response represents a list of outputs and the http url from which we can download the output.

Example of response:

- Result not Ready Exception:

     <ows:Exception exceptionCode="ResultNotReadyException"><ows:ExceptionText>The result for the requested JobID has not yet been generated or there are no outputs generated.    </ows:ExceptionText>  </ows:Exception>  </ExceptionReport>">http://www.w3.org/1999/xlink" xmlns:wfs="http://www.opengis.net/wfs/2.1" xmlns:gml="http://www.opengis.net/gml" xmlns:sld="http://www.opengis.net/sld/1.2" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:se="http://www.opengis.net/se/2.0/core" xmlns:ns8="http://www.opengis.net/se/2.0/raster" xmlns:ns7="http://www.opengis.net/se/2.0/thematic" xmlns:ns13="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0" xmlns:fes="http://www.opengis.net/fes/2.1" xmlns:ns9="http://www.opengis.net/ows-context" xmlns:ns12="http://www.w3.org/2005/Atom" xmlns:ns15="http://www.w3.org/2001/SMIL20/" xmlns:wps="http://www.opengis.net/wps/2.0" xmlns:wms="http://www.opengis.net/wms" xmlns:ns18="http://www.w3.org/2001/SMIL20/Language">  <ows:Exception exceptionCode="ResultNotReadyException">  <ows:ExceptionText>The result for the requested JobID has not yet been generated or there are no outputs generated.    </ows:ExceptionText> </ows:Exception> </ExceptionReport><ows:Exception exceptionCode="ResultNotReadyException"> <ows:ExceptionText>The result for the requested JobID has not yet been generated or there are no outputs generated.    </ows:ExceptionText></ows:Exception></ExceptionReport>">

- List of Job Outputs (abstract) :

 <Result> <wps:JobID>5d413c2714fc340001d023b6</wps:JobID><wps:Output id="I_vh.npy"><wps:Data>https://bmap-copa-data.oss.eu-west-0.prod-cloud-ocb.orange-business.com:443//5d30a4d6ae7538000155f9f6/read-2019-07-31-06-58-46-5d30a4d6ae7538000155f9f6/I_vh.npy?AccessKeyId=O2WPRORAGHXKBLCB6BY6&amp;Expires=1564564170&amp;Signature=SQOoo9oNZzDXFgbj6vQhDp7oawM%3D</wps:Data></wps:Output> <wps:Output id="Npol.npy"> <wps:Data>https://bmap-copa-data.oss.eu-west-0.prod-cloud-ocb.orange-business.com:443//5d30a4d6ae7538000155f9f6/read-2019-07-31-06-58-46-5d30a4d6ae7538000155f9f6/Npol.npy?AccessKeyId=O2WPRORAGHXKBLCB6BY6&amp;Expires=1564564170&amp;Signature=UwnPwnPmJmFpf%2FohVhSgIebwRTw%3D</wps:Data> [...) </Result> 
33 Views
Average (0 Votes)