angle-left COPA WPS Layer

Execute Operation

Request

This operation is a POST request. The request body represents an Execute request where the identifier represents a process identifier as found in the GetCapabilities response in Contents section.

In the following example we will be executing the Read process.

curl command:

curl -X POST "https://copa-backend-val.biomass-maap.com/wps?userId=197660" -H "accept: application/xml" -H "Content-Type: application/xml" -d "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><ExecuteRequestType mode=\"async\" response=\"document\" 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\"> <ows:Identifier>5d3019303f3d080001d02f2b</ows:Identifier> <wps:Input id=\"collection_names\"> <wps:Data><wps:LiteralValue>afrisar_dlr</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"sub_region_names\"> <wps:Data><wps:LiteralValue>La Lope</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"scene_name\"> <wps:Data><wps:LiteralValue>H3-0,H3-1,H3-2</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"dtm\"> <wps:Data><wps:LiteralValue>AFRISAR_DLR@afrisar_dlr_dtm_H3-0.tiff</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"slrf\"> <wps:Data><wps:LiteralValue>1</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"spaceborne_inc_angle\"> <wps:Data><wps:LiteralValue>28</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"I_hh\"> <wps:Data><wps:LiteralValue>/projects/data/read/I_hh.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"I_vh\"> <wps:Data><wps:LiteralValue>/projects/data/read/I_vh.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"I_vv\"> <wps:Data><wps:LiteralValue>/projects/data/read/I_vv.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"kz_stack\"> <wps:Data><wps:LiteralValue>/projects/data/read/kz_stack.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"look_angle\"> <wps:Data><wps:LiteralValue>/projects/data/read/look_angle.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"Npol\"> <wps:Data><wps:LiteralValue>/projects/data/Npol.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"Output\"> <wps:Data><wps:LiteralValue>/projects/data/read</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"x_ax\"> <wps:Data><wps:LiteralValue>/projects/data/read/x_ax.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"y_ax\"> <wps:Data><wps:LiteralValue>/projects/data/read/y_ax.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"azimuth\"> <wps:Data><wps:LiteralValue>/projects/data/read/azimuth.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"range\"> <wps:Data><wps:LiteralValue>/projects/data/read/range.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"dtm_output\"> <wps:Data><wps:LiteralValue>/projects/data/read/dtm.npy</wps:LiteralValue></wps:Data> </wps:Input> <wps:Input id=\"metadata\"> <wps:Data><wps:LiteralValue>/projects/data/read/metadata_stack.pkl</wps:LiteralValue></wps:Data> </wps:Input></ExecuteRequestType>"

Response

The execute operation's response represents a StatusInfo object giving you information on the request status:

A job correctly sent to the server will return a ACCEPTED status info. A job encountering an issue will return a FAILED info Status.

Once the job is ACCEPTED you can retrieve the identifier in the execute response and try to execute a GetResult Request to get the process result.

Example of Response:

<wps:JobID>5d4934281bc8b00001804f03</wps:JobID> <wps:Status>ACCEPTED</wps:Status></StatusInfo>">http://www.w3.org/1999/xlink" xmlns:se="http://www.opengis.net/se/2.0/core" xmlns:fes="http://www.opengis.net/fes/2.1" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:wps="http://www.opengis.net/wps/2.0" xmlns:ns2="http://www.w3.org/2005/Atom" xmlns:wms="http://www.opengis.net/wms" xmlns:ns3="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><wps:JobID>5d4934281bc8b00001804f03</wps:JobID><wps:Status>ACCEPTED</wps:Status></StatusInfo>

​​​​​​​

53 Views
Average (0 Votes)