File tree 5 files changed +27
-11
lines changed
5 files changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ workdir/*
3
3
outputs /*
4
4
logs /*
5
5
6
+ docker /izolation *
7
+
6
8
# vim, mac os
7
9
* .sw *
8
10
.DS_Store
9
11
. * .un~
12
+ .idea
10
13
11
14
# python setup.py build/install artifacts
12
15
build
Original file line number Diff line number Diff line change 10
10
install :
11
11
- sudo apt-get update -qq
12
12
- sudo apt-get install -qq gdal-bin libgdal-dev libgdal1h libgdal1-dev libgeos-dev python-dev python3-dev
13
- - pip install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14
- - pip install -r requirements.txt
13
+ - izolation install GDAL==1.10.0 --global-option=build_ext --global-option="-I/usr/include/gdal"
14
+ - izolation install -r requirements.txt
15
15
16
16
before_script :
17
17
" python demo.py -d"
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def wps():
79
79
return service
80
80
81
81
82
- @app .route ('/outputs/' + '<filename>' )
82
+ @app .route ('/outputs/' + '<path: filename>' )
83
83
def outputfile (filename ):
84
84
targetfile = os .path .join ('outputs' , filename )
85
85
if os .path .isfile (targetfile ):
@@ -94,7 +94,7 @@ def outputfile(filename):
94
94
flask .abort (404 )
95
95
96
96
97
- @app .route ('/static/' + '<filename>' )
97
+ @app .route ('/static/' + '<path: filename>' )
98
98
def staticfile (filename ):
99
99
targetfile = os .path .join ('static' , filename )
100
100
if os .path .isfile (targetfile ):
Original file line number Diff line number Diff line change 1
1
2
- from pywps import Process , LiteralOutput
2
+ from pywps .app import Process
3
+ from pywps .inout .outputs import LiteralOutput
3
4
from pywps .app .Common import Metadata
4
5
6
+
5
7
class UltimateQuestion (Process ):
6
8
def __init__ (self ):
7
9
inputs = []
@@ -20,8 +22,8 @@ def __init__(self):
20
22
metadata = [Metadata ('Ultimate Question' ), Metadata ('What is the meaning of life' )],
21
23
inputs = inputs ,
22
24
outputs = outputs ,
23
- store_supported = False ,
24
- status_supported = False
25
+ store_supported = True ,
26
+ status_supported = True
25
27
)
26
28
27
29
def _handler (self , request , response ):
Original file line number Diff line number Diff line change @@ -25,17 +25,28 @@ contact_role=pointOfContact
25
25
[server]
26
26
maxsingleinputsize=1mb
27
27
maxrequestsize=3mb
28
- url=http://localhost:5000 /wps
29
- outputurl=http://localhost:5000 /outputs/
28
+ url=http://localhost:5555 /wps
29
+ outputurl=http://localhost:5555 /outputs/
30
30
outputpath=outputs
31
- workdir=/tmp
31
+ workdir=workdir
32
+ wd_inp_subdir=inputs
33
+ wd_out_subdir=outputs
32
34
maxprocesses=10
33
- parallelprocesses=2
35
+ parallelprocesses=6
36
+
37
+ [processing]
38
+ mode=docker
39
+ port_min=5050
40
+ port_max=5070
41
+ docker_img=gdal_full_manual2
42
+ dckr_inp_dir=/pywps-flask/data
43
+ dckr_out_dir=/pywps-flask/outputs
34
44
35
45
[logging]
36
46
level=INFO
37
47
file=logs/pywps.log
38
48
database=sqlite:///logs/pywps-logs.sqlite3
49
+ format=%(asctime)s] [%(levelname)s] file=%(pathname)s line=%(lineno)s module=%(module)s function=%(funcName)s %(message)s
39
50
40
51
41
52
[grass]
You can’t perform that action at this time.
0 commit comments