Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<wps:ExecuteResponse xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd" service="WPS" version="1.0.0" xml:lang="en-CA" serviceInstance="http://dtvirt5.deltares.nl/wps?service=WPS&request=GetCapabilities&version=1.0.0" statusLocation="http://dtvirt5.deltares.nl/outputwps/pywps-137639971224.xml">

<wps:Process wps:processVersion="1">
<ows:Identifier>constituents</ows:Identifier>
<ows:Title>Lookup constituents based on their short name</ows:Title>
<ows:Abstract>...</ows:Abstract>
</wps:Process>

<wps:Status creationTime="2013-08-13T15:15:12Z">
<wps:ProcessSucceeded>PyWPS Process constituents successfully calculated</wps:ProcessSucceeded>
</wps:Status>

<wps:ProcessOutputs>

<wps:Output>
<ows:Identifier>u</ows:Identifier>
<ows:Title>u taken from Schureman</ows:Title>
<wps:Data>
<wps:LiteralData dataType="float" uom="None">12.5910330876</wps:LiteralData>
</wps:Data>
</wps:Output>

<wps:Output>
<ows:Identifier>speed</ows:Identifier>
<ows:Title>Speed of the constituent (radians per hour)</ows:Title>
<wps:Data>
<wps:LiteralData dataType="float" uom="r">0.505868049939</wps:LiteralData>
</wps:Data>
</wps:Output>

<wps:Output>
<ows:Identifier>FF</ows:Identifier>
<ows:Title>FF nodal factor, taken from Schureman</ows:Title>
<wps:Data>
<wps:LiteralData dataType="float" uom="None">1.0281626242</wps:LiteralData>
</wps:Data>
</wps:Output>

<wps:Output>
<ows:Identifier>VAU</ows:Identifier>
<ows:Title>V+u taken from Schureman</ows:Title>
<wps:Data>
<wps:LiteralData dataType="float" uom="None">16.2091031443</wps:LiteralData>
</wps:Data>
</wps:Output>

</wps:ProcessOutputs>
</wps:ExecuteResponse>

Asking for a specific output format.

The tidal_predict method supports both text/csv and application/json. The available attribute values are in the DescribeProcess xml file.

Code Block

<Output><ows:Identifier>tide</ows:Identifier>
<ows:Title>Calculated water level for requested locations and date</ows:Title><ComplexOutput><Default>
   <Format><MimeType>text/csv</MimeType></Format></Default>
<Supported>
   <Format><MimeType>text/csv</MimeType></Format>
   <Format><MimeType>application/json</MimeType></Format>
</Supported></ComplexOutput>
</Output>

To get the non-default json output instead of the default csv output, add a keyword &responsedocument (outside datainputs brackets), using the WPS standard that you can specify attributes
of a something by padding =@attributename=attributename, in . In this case we add an attribute mimetype=application/json to the output value tide as &responsedocument=tide=@mimetype=application/json, yielding the following url:

...