New version of PyWPS, written from scratch.
-
Documentation, hosted by ReadTheDocs.
-
Chat: https://gitter.im/PyWPS
Short version: MIT Long version: see LICENSE.txt file
- lxml (http://lxml.de)
- werkzeug (http://werkzeug.pocoo.org)
- libxml2-dev, libxslt1-dev
- GDAL (http://www.gdal.org/)
- owslib (http://geopython.github.io/OWSLib/)
- jsonschema (http://json-schema.org/)
Install and run tox:
$ pip install tox
$ tox
Or run the tests by hand, with either python 2 or 3:
$ python tests/__init__.py
Clone PyWPS-4 recursively with the demo application:
$ git clone --recursive git://github.com/jachym/pywps-4.git
$ sudo python setup.py install
$ cd demo/
$ python demo.py
Or clone only demo app after having installed PyWPS-4:
$ git clone git://github.com/PyWPS/pywps-4-demo.git
$ cd demo/
$ python demo.py
-
Enable WSGI extension
-
Add configuration:
WSGIDaemonProcess pywps user=user group=group processes=2 threads=5 WSGIScriptAlias /pywps /path/to/www/htdocs/wps/pywps.wsgi <Directory /path/to/www/htdocs/wps/> WSGIProcessGroup group WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory>
-
Create wsgi file:
#!/usr/bin/env python3 import sys sys.path.append('/path/to/src/pywps-4/') import pywps from pywps.app import Service, WPS, Process def pr1(): """This is the execute method of the process """ pass application = Service(processes=[Process(pr1)])
-
Run via web browser
http://localhost/pywps/?service=wps&request=getcapabilities&version=1.0.0
-
Run in command line:
curl 'http://localhost/pywps/?service=wps&request=GetCapabilities&version=1.0.0'
On Windows PyWPS-4 does not support multiprocessing which is used when making requests storing the response document and updating the status to displaying to the user the progression of a process.