[OWSLib-devel] PyWPS question

Jachym Cepicky jachym.cepicky at gmail.com
Thu Oct 31 13:38:10 PDT 2013


Hi,

Dne 31.10.2013 17:55, Cinquini, Luca (3980) napsal(a):
> Hi Jachym, we are using PwWPS (version 3.2.1) at JPL to enable
> regridding of NASA observational data, and I have a question
> concerning how to access some of the fields exposed to the client...
> 
> Specifically, for an asynchronous request, the server sends to the
> client a document containing the "statusLocation", and eventually the
> href "Reference" to the output URL (once it is renamed by the
> engine). These fields are known to the PyWPS engine, but not to the
> WPSProcess itself that is running. Although in general this makes
> total sense, in some circumstances the WPSProcess might need to use
> them, for example to send email to the user when it completes.
> 
> Is there any back-door for the WPSProcess to retrieve these fields ?
> 

First option: Sören implemented support for FTP server, so the process
can upload the data there

Second option: setup MapServer, which would deal as WCS service (needs
probably more work)

Third option: Hack around pywps/Wps/Execute/__init__.py, where
statusLocation is set to

            self.statusLocation =
config.getConfigValue("server","outputUrl")+"/"+self.getSessionId()+".xml"

Make this available in your process, maybe on line 494 just add


self.process.statusLocation = self.statusLocation

and it should work(?)

Jachym


-- 
Jachym Cepicky
jachym.cepicky at gmail.com
http://les-ejk.cz
PGP: http://les-ejk.cz/pgp/JachymCepicky.pgp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/owslib-devel/attachments/20131031/354d2459/attachment.pgp>


More information about the OWSLib-devel mailing list