-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPS Output Arrays not supported #37
Comments
The object returned could itself be a collection/list. For example, returning a single GML document that is itself a gml:FeatureCollection. This is already supported even with a cardinality of one in the output. |
No, you consider XML/JSON document, but EO processing outputs are often binaries (TIF, HDF5, etc.) so you cannot make collections of files (excepted using an archive). |
@spacebel , you are right. We might need an array or list of outputs to be able to support various types of content. |
From this UI if you input the following information in the "Execute EndPoint" tag:
Then if you press the "Execute" button, the process is run and (in case you did not ask to run the service asynchronously) the outpuInfois automatically returned (I know this is only at the discussing state to return something for execute requests - see #30) but just to illustrate (note also that we are relying on pygeoapi.io server to access "OGC API - Features" and use them as input data for processing). What I have found in this model made me think that in case the result is in "application/json" format and the result should be returned as I think we may try to use the "Any Type" defined in OpenAPI like I tried to do in the messy additionalParameters I have edited trying to integrate the additionalParameters. In case we move to inlineValue to "Any Type", it means that we will then be able to return an array as the JSON object used in this example. |
I'm not catching what you mean, but the solution will need to handle all kind of outputs (including outputs by reference). If understood correctly, you mention another example of process that can embed multiple "documents" in a single output, but this is well understood. A considerable part of processing outputs are binaries. |
See also #90 |
I agree with @gfenoy regarding the
But if
|
I disagree. You can only state JSON format if the output file is actually a JSON file. |
Maybe it wasn't clear. I was not referring to the |
The respective changes should be merged now. |
We reported one well-known issue regarding to the possibility to report list of files as outputs.
List of outputs is indeed disallowed by spec : (http://www.opengis.net/spec/WPS/2.0/req/conceptual-model/process/output-value-cardinality Each process output shall have a value cardinality of one)
The following workarounds are generally used:
How can we improve the spec regarding that problem ?
The text was updated successfully, but these errors were encountered: