You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently have an algorithm that performs certain actions on an input layer. That layer is already included in a qgs project and I only need to provide the name of the layer as an input parameter.
What I need
I would now like to change the algorithm so that I can provide the actual layer (in my specific case a shape file) as an input parameter, but so far I haven't been able to achieve this.
If you need to pass data to your algorithm from client-side, prefer inputs file parameter and small payloads.
Unfortunately, that didn't help me much further. Have tried it with both Postman and curl, but wasn't able to get it working. Can you provide a more detailed explanation on how something like that could be achieved?
Idea/reason behind all this
The already in the qgs project included layer gives a baseline reference. A user can download a copy of the original layer, edit it, re-run the algorithm and compare the results.
The text was updated successfully, but these errors were encountered:
From Qgis/Prcocesing side, do as usual: pass your parameter as File parameter. You will be able to test your Algorithm with qgis desktop.
From WPS client side, your input parameter will be a complex Input which may be either an uri reference or a base64 full payload (not recommended), depending on your workflow.
Thanks for your feedback! We will give it a try and hopefully get it working. If you ever get the chance to extend the current docs with a working example (or provide it as a test in your code), it would certainly be much appreciated.
What I have
I currently have an algorithm that performs certain actions on an input layer. That layer is already included in a qgs project and I only need to provide the name of the layer as an input parameter.
What I need
I would now like to change the algorithm so that I can provide the actual layer (in my specific case a shape file) as an input parameter, but so far I haven't been able to achieve this.
My problem
In the docs under Contextualized input parameters it only says:
Unfortunately, that didn't help me much further. Have tried it with both Postman and curl, but wasn't able to get it working. Can you provide a more detailed explanation on how something like that could be achieved?
Idea/reason behind all this
The already in the qgs project included layer gives a baseline reference. A user can download a copy of the original layer, edit it, re-run the algorithm and compare the results.
The text was updated successfully, but these errors were encountered: