Aufruf ****** Man hat 3 Möglichkeiten, wie man PyWPS aufruft: #. Konsole :: $ export PYWPS_CFG=/home/fossgis/fossgis/fossgiswps.cfg $ export PYWPS_PROCESSES=/home/fossgis/fossgis/prozesses/ $ wps.py "service=wps&request=getcapabilities" Man sieht direkt was los ist, sowohl auf :envvar:`STDOUT` als auch auf :envvar:`STDERR` #. :command:`wget`:: $ wget -O - "http://localhost/cgi-bin/fossgiswps?service=wps&request=getcapabilities" #. Im Webbrowser (mit dem FOSSGIS-Life CD benutzt Firefox) http://localhost/cgi-bin/fossgiswps?service=wps&request=getcapabilities Immer ist es gut :command:`tail -f /var/log/apache/error.log` nebenbei zu laufen. GetCapabilities =============== HTTP GET -------- .. highlight:: sh :linenothreshold: 5 Entweder:: $ export PYWPS_CFG=/home/fossgis/fossgis/fossgiswps.cfg $ export PYWPS_PROCESSES=/home/fossgis/fossgis/prozesses/ $ wps.py "service=wps&request=getcapabilities" Oder http://localhost/cgi-bin/fossgiswps?service=wps&request=getcapabilities **Parametern** service `WPS` request `GetCapabilities` HTTP POST --------- :: $ export PYWPS_CFG=/home/fossgis/fossgis/fossgiswps.cfg $ export PYWPS_PROCESSES=/home/fossgis/fossgis/prozesses/ $ export REQUEST_METHOD=POST $ cat pywps/doc/examples/wps_getcapabilities_request.xml | wps.py .. highlight:: xml :linenothreshold: 5 XML Encoding :: 1.0.0 DescribeProcess =============== HTTP GET -------- http://localhost/cgi-bin/fossgiswps?service=wps&request=describeprocess&version=1.0.0&identifier=exampleBufferProcess,ultimatequestionprocess service `WPS` request `DescribeProcess` version `1.0.0` identifier `exampleBufferProcess[,ultimatequestionprocess]` HTTP POST --------- .. highlight:: xml :linenothreshold: 5 XML Datei (:file:`pywps/doc/examples/wps_describeprocess_request.xml`):: exampleBufferProcess ultimatequestionprocess Execute ======= HTTP GET -------- exampleBufferProcess: http://localhost/cgi-bin/fossgiswps?service=wps&request=execute&version=1.0.0&identifier=exampleBufferProcess&datainputs=[data=@href=http://les-ejk.cz/schulung/pywps-de/_images/line.xml;width=2]&storeExecuteResponse=true&status=false ultimatequestionprocess: http://localhost/cgi-bin/fossgiswps?service=wps&request=execute&version=1.0.0&identifier=ultimatequestionprocess&storeExecuteResponse=true&status=true service `WPS` request `Execute` version `1.0.0` identifier `exampleBufferProcess` datainputs `[data=@href=http://les-ejk.cz/schulung/pywps-de/_images/line.xml;width=2]` status `false` storeExecuteResponse `true` HTTP POST --------- .. highlight:: xml :linenothreshold: 5 :: exampleBufferProcess data width 2 buffer .. image:: data/line.xml