Skip to content
/ pywps Public
forked from geopython/pywps

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.

License

Notifications You must be signed in to change notification settings

sebastic/pywps

Repository files navigation

pywps-4

New version of PyWPS, written from scratch.

License

Short version: MIT Long version: see LICENSE.txt file

Dependencies

Run tests

Install and run tox:

$ pip install tox
$ tox

Or run the tests by hand, with either python 2 or 3:

$ python tests/__init__.py

Run web application

Demo application

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

Apache configuration

  1. Enable WSGI extension

  2. 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>
  3. 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)])
  4. Run via web browser

    http://localhost/pywps/?service=wps&request=getcapabilities&version=1.0.0

  5. Run in command line:

    curl 'http://localhost/pywps/?service=wps&request=GetCapabilities&version=1.0.0'

Issues

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.

About

PyWPS is an implementation of the Web Processing Service standard from the Open Geospatial Consortium. PyWPS is written in Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%