[Zoo-discuss] Handling reference input files for processing Zoo-kernel

Fenoy Gerald gerald.fenoy at geolabs.fr
Tue May 3 04:21:25 PDT 2016


Hi Rakesh,
thanks a lot for this questions which are all of high quality.

I cannot recall honestly if it is specified that the processing server should be responsible or not for providing the inputs when they are passed by reference. Nevertheless, you can be sure that in the case of the ZOO-Kernel, it is the case.

For any value passed by reference, rather than by value, won’t make much difference from the service developper point of view in the sense that it will receive in the value field for the corresponding input the content of the downloaded file (this file can be text file to binary). Obviously, you will also have a reference to the url given in the request in addition to the traditional value field.

For both the Orfeo Toolbox and SAGA-GIS support they handle the inputs more transparently, meaning that in that specific case we will run an OTB application, or SAGA, respectively, They require mohave access to the file on the filesystem so we simply add in such a case the reference to the local file stored. This require to activate the cache system available in the ZOO-Kernel.

Anyway, in any case the service developper don’t have to take much care about the way the files are downloaded as he will have access the same value field containing the content of the downloaded file.

In every language the same thing happen, so for the Java language specifically you will have a hash map for you input containing a hash named value with its value.

I hope my answer was clear and helped you to better understand the way intros are handled in the ZOO-Kernel.

Best regards,

> Le 3 mai 2016 à 12:48, rakesh prithiviraj <rakeshuk at outlook.com> a écrit :
> 
> Hi,
> 
> After reading OGC WPS spec 2.0.0, I tend to believe that it is the responsibility of the WPS server/ZOO-kernel to fetch the inputs specified in the WPS execute request. This means for inputs passed by reference, ZOO-Kernel will download the input and will provide it to processor. Is this true or is the processor responsible for fetching the inputs (specified by the URL)?
> 
> In the Orfeo toolbox example from ZOO project website, the execution request refers to TIF file from http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW.tif. Does BandMath is responsible for retrieving this input or does zoo-kernel retrieves this input and updates the path of the input in "inputs" parameter passed to the processor. (e.g. hashmap inputs for Java)?
> 
> http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=OTB.BandMath&DataInputs=il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW.tif;il=Reference@xlink:href=http://hg.orfeo-toolbox.org/OTB-Data/raw-file/ca154074b282/Examples/verySmallFSATSW_nir.tif;out=float;exp=im1b3*cos%28im1b1%29,im1b2*cos%28im1b1%29,im1b1*cos%28im1b1%29&RawDataOutput=out@mimeType=image/png  
> 
> Please advise.
> 
> Thanks,
> Rakesh
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list