[Zoo-discuss] Execution time of a raster echo service
Fenoy Gerald
gerald.fenoy at geolabs.fr
Sat Nov 28 10:23:59 PST 2015
Dear Adrien,
thanks for your answers.
I do apologie to answer one more time by another question, but I would like to know if you are requesting your service asynchronously or synchronously ? If yes then you should have set the status and storeExecuteResponse attributes of the ResponseDocument node to true in your request, right ? If you did, then you should not wait until the service execution end before having an answer by the server. In fact, you won’t even wait for the server to decode your base64 image.
I suppose that the issue is with the base64 decoding which is taking too much time. To make sure it comes from here, you may try to first store your raster file somewhere then pass it by reference to your service, this way you will avoid passing through the base64 decoding process.
Even if it is supported to send images encoded in base64 I should admit that it is not a safe way to do, except in case you are using asynchronous requests as described before as you won’t have to wait for the long decoding process take place, but it will still consume the exact same time.
If it is still too long then we should look into the source code.
Hope this helps,
> Le 28 nov. 2015 à 18:26, Adrien ANDRÉ <adr.andre at laposte.net> a écrit :
>
> Dear Gérald,
>
>> Are you sure you are really calculating the processing time or do you include also the time requested to send/access your raster data over the network ?
>
> network transfers are also included
>
>> Are you sending the raster file embedded into the XML request or using an xlink:ref, or using a WCS request (if this last option then, is it POST or GET) ?
>
> base64 encoded raster data is embeded in XML and sent with POST
>
>
> Thank you for your help,
>
> kind regards,
>
> Adrien
> _______________________________________________
> 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