[Zoo-discuss] ZOO-Project OGC API - Processes User Interface

Gérald Fenoy gerald.fenoy at geolabs.fr
Fri Nov 6 01:06:21 PST 2020


Dear Luca,
Thanks a lot for your message.

Note that I have deployed few services but did not test all of the services. Thanks for your report about issue with vector-tools.Buffer service.

In case you try the same using the vector-tools.BufferPy alternative it is working properly.

You can find here [1] the result of the execution using the vector-tools.BufferPy with your JSON data as input.

I hope you can confirm that using the *Py alternative works also on your side.

Best regards,



[1] https://demo.mapmint.com/ogc-api/processes/vector-tools.BufferPy/jobs/bdf93ca2-2016-11eb-b16b-525400a77789.html <https://demo.mapmint.com/ogc-api/processes/vector-tools.BufferPy/jobs/bdf93ca2-2016-11eb-b16b-525400a77789.html>

Gerald Fenoy
Chair, ZOO-Project PSC

> Le 5 nov. 2020 à 23:18, Luca Delucchi <lucadeluge at gmail.com> a écrit :
> 
> On Mon, 2 Nov 2020 at 17:04, Gérald Fenoy <gerald.fenoy at geolabs.fr> wrote:
>> 
>> Dear all,
> 
> Dear Gerald,
> 
>> I am glad to present some enhancements that has been added lately on the ZOO-Project and especially the addition of a basic User Interface  (UI).
>> 
> really good job!!
> 
>> I made this UI available on this demo server [1], as said it is a really basic UI where one can browse the processes available from the /processes path [2], get detailed informations from the /process/{processId} path (i.e. using OTB.BandMath processId [3]) but also use this same page to produce the JSON Execute request to be sent to the ZOO-Kernel with OGC API - Processes activated.
>> 
>> Indeed, from this last part of the UI, users have an HTML form that can be used to configure the inputs, the outputs and other parameters to be sent. From this HTML form, complex data can be passed by reference only when literal input can be defined right from the corresponding field. To generated the JSON Execute request, one can click on the « Submit » button. Note that in case you did not define a required input properly, you will be prompted to fill them.
>> 
>> Also, as we now get the callbacks [4] definition supported by the ZOO-Kernel, the UI is automatically defining a URL for successUri, inProgressUri and failedUri. The consequence is that the ZOO-Kernel will send the current status of the execution of a process to the defined Uris. Also, when one click on the « Submit job » button appearing in the modal, a web socket is used to get the up-to-date information about status of execution of a process. Note that the service implemented to handle this is a very trivial python code [5] using redis and a uuid generated by the ZOO-Kernel to keep track of whom the messages should be targeted to. We implemented the UI this way to illustrate how the callbacks can be used to avoid polling using the OGC API - Processes.
>> 
> 
> so this means that right now it doesn't work? because I tried few
> commands (like [0] with this data [1]) but none is working
> 
>> The UI uses the Cheetah Tempalte Engine [6] and will require that the display service [7] is installed on your server. Also, to simplify the URLs to access the OGC API - Processes I have added this .htaccess [8] sample to show how to setup the transparent invocation of the display service in case the URL ends with .html. You may notice that the rewrite rules defined in this file use the original URL to create a Xlink:href that is passed as an input to the display Service which is responsible to produce the HTML output. The display service also rely on the Cheetah template [9] which define the way data should be shown in the HTML layout. One more time, this HTML code is very basic and require improvement here and there.
>> 
>> Note that, by now, only the document value is acceptable for the response parameter in the JSON Execute request.
>> 
>> I hope you will appreciate the UI. I am more than open to any comment, enhancement request and so on.
>> 
> 
> really much, I'm not using WPS since long time but I really appreciate
> the OGC API support in ZOO-Project!
> 
>> I wish you a great day and a great week ahead.
>> 
> 
> [0] https://demo.mapmint.com/ogc-api/processes/vector-tools.Buffer.html
> [1] https://gist.githubusercontent.com/wavded/1200773/raw/e122cf709898c09758aecfef349964a8d73a83f3/sample.json
> 
>> Best regards,
>> 
> 
> 
> -- 
> ciao
> Luca
> 
> www.lucadelu.org
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/zoo-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20201106/828f1056/attachment.html>


More information about the Zoo-discuss mailing list