Nuovo processo che restituisce l'xml con tutti i percorsi
[alpinway.git] / doc / pywps.tex
blob27e297fdce82075773d016005141acd547f65ed2
1 \section{PyWPS}
2 \label{sec:pywps}
4 "PyWPS (Python Web Processing Service) is implementation of Web Processing
5 Service standard from Open Geospatial Consortium.
7 It has been started on Mai 2006 as project supported by DBU. It offers
8 environment for programming own process (geofunctions or models) which can
9 be accessed from the public. The main advantage of PyWPS is, that it has
10 been written with native support for GRASS. Access GRASS modules via web
11 interace should be as easy as possible.
13 PyWPS is written in Python programming language, your processes must use this language too."\cite{pywps}
15 \subsection{How it works}
16 After downloading and compiling the source (there are some prerequisite
17 packages: python, python-xml, python-htmltmpl) you need to setup the
18 environment of your machine.
20 The configuration is pywps.cfg and must be located in /etc/.
21 Here is an example of my configuration.
22 Section wps define the properties of PyWPS. Here the most important
23 parameter is serveraddress that store the address of the cgi-bin process
25 [wps]
27 encoding=utf-8
29 title=PyWPS Development Server
31 version=1.0.0
33 abstract=Development version of PyWPS. See http://pywps.wald.intevation.org
35 fees=None
37 constraints=none
39 serveraddress=http://localhost/cgi-bin/wps
41 keywords=GRASS,GIS,WPS
43 lang=eng,ger,ita
45 Section provider define some information about the provider of the service.
46 It is not really relevant for our purpose. We show this section only for
47 completeness.
49 [provider]
51 providerName=University of Trento
53 individualName=N. M.
55 positionName=Student
57 role=Student
59 deliveryPoint=Street
61 city=City
63 postalCode=000 00
65 country=eu
67 electronicMailAddress=login@server.org
69 providerSite=http://foo.bar
71 phoneVoice=False
73 phoneFacsimile=False
75 administrativeArea=False
77 [server]
79 maxoperations=3
81 maxinputparamlength=1024
83 maxfilesize=3mb
85 tempPath=/tmp
87 processesPath=
89 outputUrl=http:/\/localhost/wps/wpsoutputs
91 outputPath=/var/www/wps/wpsoutputs
93 debug=true
95 processesPath=/home/nico/project/web/trunk/doc/examples/processes
97 [grass]
99 path=/usr/lib/grass/bin/:/usr/lib/grass/scripts/
101 addonPath=
103 version=6.2.1
105 gui=text
107 gisbase=/usr/lib/grass/
109 ldLibraryPath=/usr/lib/grass/lib
111 gisdbase=/home/nico/grass
113 home=/var/www/
115 \subsection{Pywps in Alpinway}