Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import sys
sys.path.insert(0, r"c:\pywps")
import os
os.environ['PYWPS_CFG']='C:/pywps_processes/default.cfg'
os.environ['PYWPS_PROCESSES'] ='C:/pywps_processes'
import wpsimport syssys.path.insert(0, r"c:\pywps")import osos.environ['PYWPS_CFG']='C:/pywps_processes/default.cfg'os.environ['PYWPS_PROCESSES'] ='C:/pywps_processes'import wps

Step 5:
Install the PyWPS Python package, open the Windows command line tool (start > run), drag and drop 'setup.py' from your 'c:\pywps' folder, type install after the location of the setup file and click ok. The PyWPS Python package is now installed.

Step 6:
Test your WPS by starting Apache server and navigate to http://localhost/cgi-bin/pywps_test.cgi 
The result should be something similar to this:

Code Block
<ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
	<Exception exceptionCode="NoApplicableCode">
		<ExceptionText>'No query string found.'</ExceptionText>
	</Exception>
</ExceptionReport>

Step 67:
Add your own Python processes as WPS by copying your processes to the 'c:\pythonprocesses' folder.
In 'c:\pywps\tests\processes' some example processes are included, copy these to your 'c:\pythonprocesses' folder and find out whether you can get them to run.

...