-
Notifications
You must be signed in to change notification settings - Fork 2
/
pywps.wsgi
executable file
·48 lines (38 loc) · 1.17 KB
/
pywps.wsgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/python
activate_this = '/local/pointwps/pywps-venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import os
import sys
import logging
logging.basicConfig(stream=sys.stderr)
os.environ['PYTHON_EGG_CACHE'] = '/local/pointwps/python-eggs'
sys.path.append("/local")
sys.path.append("/local/pointwps")
sys.path.append("/local/pointwps/processes")
sys.path.append("/local/pointwps/logs")
import pywps
from pywps.app.Service import Service
# processes need to be installed in PYTHON_PATH
#from processes.sayhello import SayHello
from processes.polygon_query import polygonQuery
from processes.tile2dtm import tile2dtm
#from processes.tile2raster import tile2raster
from processes.pointclip import pointClip
from processes.pointclipnormalised import pointClipNormalised
from processes.pointclipdtm import pointClipDTM
from processes.dartsample import dartSample
processes = [
polygonQuery(),
tile2dtm(),
pointClip(),
pointClipNormalised(),
pointClipDTM(),
dartSample()
]
# Service accepts two parameters:
# 1 - list of process instances
# 2 - list of configuration files
application = Service(
processes,
['/local/pointwps/pywps.cfg']
)