[Pywps-commits] r570 - in trunk/doc: . examples
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 3 17:16:50 CEST 2008
Author: jachym
Date: 2008-09-03 17:16:49 +0200 (Wed, 03 Sep 2008)
New Revision: 570
Added:
trunk/doc/InAndOutputs.html
trunk/doc/Lang.html
trunk/doc/Process.html
trunk/doc/examples/HTTP_GET.txt
trunk/doc/examples/wps_execute_request-rawdataoutput.xml
trunk/doc/examples/wps_execute_request-responsedocument.xml
Removed:
trunk/doc/process.html
trunk/doc/wps_execute_request-rawdataoutput.xml
Modified:
trunk/doc/Makefile
Log:
updated documentation
Added: trunk/doc/InAndOutputs.html
===================================================================
--- trunk/doc/InAndOutputs.html 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/InAndOutputs.html 2008-09-03 15:16:49 UTC (rev 570)
@@ -0,0 +1,575 @@
+
+<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head><title>Python: module InAndOutputs</title>
+</head><body bgcolor="#f0f0f8">
+
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
+<tr bgcolor="#7799ee">
+<td valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>InAndOutputs</strong></big></big></font></td
+><td align=right valign=bottom
+><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jachym/usr/src/pywps/trunk/pywps/Process/InAndOutputs.py">/home/jachym/usr/src/pywps/trunk/pywps/Process/InAndOutputs.py</a></font></td></tr></table>
+ <p><tt># Author: Jachym Cepicky<br>
+# <a href="http://les-ejk.cz">http://les-ejk.cz</a><br>
+# Lince: <br>
+# <br>
+# Web Processing Service implementation<br>
+# Copyright (C) 2006 Jachym Cepicky<br>
+# <br>
+# This program is free software; you can redistribute it and/or modify<br>
+# it under the terms of the GNU General Public License as published by<br>
+# the Free Software Foundation; either version 2 of the License.<br>
+# <br>
+# This program is distributed in the hope that it will be useful,<br>
+# but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
+# GNU General Public License for more details.<br>
+# <br>
+# You should have received a copy of the GNU General Public License<br>
+# along with this program; if not, write to the Free Software<br>
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</tt></p>
+<p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#aa55cc">
+<td colspan=3 valign=bottom> <br>
+<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
+
+<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
+<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="re.html">re</a><br>
+</td><td width="25%" valign=top><a href="types.html">types</a><br>
+</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ee77aa">
+<td colspan=3 valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
+
+<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
+<td width="100%"><dl>
+<dt><font face="helvetica, arial"><a href="InAndOutputs.html#Input">Input</a>
+</font></dt><dd>
+<dl>
+<dt><font face="helvetica, arial"><a href="InAndOutputs.html#BoundingBoxInput">BoundingBoxInput</a>
+</font></dt><dt><font face="helvetica, arial"><a href="InAndOutputs.html#ComplexInput">ComplexInput</a>
+</font></dt><dt><font face="helvetica, arial"><a href="InAndOutputs.html#LiteralInput">LiteralInput</a>
+</font></dt></dl>
+</dd>
+<dt><font face="helvetica, arial"><a href="InAndOutputs.html#Output">Output</a>
+</font></dt><dd>
+<dl>
+<dt><font face="helvetica, arial"><a href="InAndOutputs.html#BoundingBoxOutput">BoundingBoxOutput</a>
+</font></dt><dt><font face="helvetica, arial"><a href="InAndOutputs.html#ComplexOutput">ComplexOutput</a>
+</font></dt><dt><font face="helvetica, arial"><a href="InAndOutputs.html#LiteralOutput">LiteralOutput</a>
+</font></dt></dl>
+</dd>
+</dl>
+ <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="BoundingBoxInput">class <strong>BoundingBoxInput</strong></a>(<a href="InAndOutputs.html#Input">Input</a>)</font></td></tr>
+
+<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="BoundingBoxInput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, dimensions<font color="#909090">=2</font>, crss<font color="#909090">=[]</font>)</dt><dd><tt>Add BoundingBox input<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+crss List of {String} supported coordinate systems.<br>
+ default: ["EPSG:4326"]<br>
+<a href="#Input">Input</a>.<a href="#BoundingBoxInput-__init__">__init__</a>(self,identifier,title,abstract=None,<br>
+ metadata=[],minOccurs=minOccurs,maxOccurs=maxOccurs,type="BoundingBoxValue")</tt></dd></dl>
+
+<dl><dt><a name="BoundingBoxInput-setValue"><strong>setValue</strong></a>(self, value)</dt><dd><tt>Set value of this input<br>
+ <br>
+Parameters:<br>
+value {Tuple} (minx,miny,maxx,maxy)</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>crs</strong> = None</dl>
+
+<dl><dt><strong>crss</strong> = None</dl>
+
+<dl><dt><strong>dimensions</strong> = None</dl>
+
+<dl><dt><strong>maxx</strong> = None</dl>
+
+<dl><dt><strong>maxy</strong> = None</dl>
+
+<dl><dt><strong>minx</strong> = None</dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Input">Input</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>maxOccurs</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>minOccurs</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="BoundingBoxOutput">class <strong>BoundingBoxOutput</strong></a>(<a href="InAndOutputs.html#Output">Output</a>)</font></td></tr>
+
+<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="BoundingBoxOutput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, crss<font color="#909090">=[]</font>, dimensions<font color="#909090">=2</font>, asReference<font color="#909090">=False</font>)</dt><dd><tt>BoundingBox output<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+crss List of {String} supported coordinate systems.<br>
+ default: ["EPSG:4326"]<br>
+dimensions {Integer} number of dimensions<br>
+ default: 2<br>
+asReference {Boolean} wheather this output will be given back as<br>
+ reference or as file<br>
+ default: False</tt></dd></dl>
+
+<dl><dt><a name="BoundingBoxOutput-setValue"><strong>setValue</strong></a>(self, value)</dt><dd><tt>Set value to bbox output<br>
+ <br>
+Parameters:<br>
+value {Tuple} (minx,miny,maxx,maxy)</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>crss</strong> = None</dl>
+
+<dl><dt><strong>dimensions</strong> = None</dl>
+
+<dl><dt><strong>maxx</strong> = None</dl>
+
+<dl><dt><strong>maxy</strong> = None</dl>
+
+<dl><dt><strong>minx</strong> = None</dl>
+
+<dl><dt><strong>miny</strong> = None</dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Output">Output</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>asReference</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="ComplexInput">class <strong>ComplexInput</strong></a>(<a href="InAndOutputs.html#Input">Input</a>)</font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt><a href="#ComplexInput">ComplexInput</a> type<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="ComplexInput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, maxmegabites<font color="#909090">=5</font>, formats<font color="#909090">=[{'mimeType': 'text/xml'}]</font>)</dt><dd><tt>Init complex input<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+formats List of {Dict} according to table 23 (page 25). E.g.<br>
+ [<br>
+ {"mimeType": "image/tiff"},<br>
+ {<br>
+ "mimeType": "text/xml",<br>
+ "encoding": "utf-8",<br>
+ "schema":"<a href="http://foo/bar">http://foo/bar</a>"<br>
+ }<br>
+ ]<br>
+ default: [{"mimeType":"text/xml"}]<br>
+maxmegabites {Float} Maximum input file size. Can not be bigger, as<br>
+ defined in global configuration file. <br>
+ default: 5</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-downloadData"><strong>downloadData</strong></a>(self, url)</dt><dd><tt>Download data from given url. Do not download more, then<br>
+self.<strong>maxmegabites</strong><br>
+ <br>
+Parameters:<br>
+url {String} URL where the data are lying</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-onMaxFileSizeExceeded"><strong>onMaxFileSizeExceeded</strong></a>(self, why)</dt><dd><tt>Empty method, called, when there was any problem with the input.<br>
+ <br>
+Parameters:<br>
+why {String} Error code</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-onNotFound"><strong>onNotFound</strong></a>(self, what)</dt><dd><tt>Empty method, called, when there was any problem with the input.<br>
+ <br>
+Parameters:<br>
+what {String} Error code</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-onProblem"><strong>onProblem</strong></a>(self, what, why)</dt><dd><tt>Empty method, called, when there was any problem with the input.<br>
+ <br>
+Parameters:<br>
+what {String} Message with error description<br>
+why {String} Error code</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-setValue"><strong>setValue</strong></a>(self, input)</dt><dd><tt>Set input value for this input</tt></dd></dl>
+
+<dl><dt><a name="ComplexInput-storeData"><strong>storeData</strong></a>(self, data)</dt><dd><tt>To be redefined in each instance</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>format</strong> = None</dl>
+
+<dl><dt><strong>formats</strong> = None</dl>
+
+<dl><dt><strong>maxFileSize</strong> = None</dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Input">Input</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>maxOccurs</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>minOccurs</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="ComplexOutput">class <strong>ComplexOutput</strong></a>(<a href="InAndOutputs.html#Output">Output</a>)</font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Complex value output<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="ComplexOutput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, formats<font color="#909090">=[{'mimeType': 'text/xml'}]</font>, asReference<font color="#909090">=False</font>)</dt><dd><tt>Complex output<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} output identifier<br>
+title {String} output title<br>
+ <br>
+Optional parameters:<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+formats List of {Dict} according to table 23 (page 25). E.g.<br>
+ [<br>
+ {"mimeType": "image/tiff"},<br>
+ {<br>
+ "mimeType": "text/xml",<br>
+ "encoding": "utf-8",<br>
+ "schema":"<a href="http://foo/bar">http://foo/bar</a>"<br>
+ }<br>
+ ]<br>
+ default: [{"mimeType":"text/xml"}]<br>
+asReference {Boolean} wheather this output will be given back as<br>
+ reference or as file<br>
+ default: False</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>format</strong> = None</dl>
+
+<dl><dt><strong>formats</strong> = None</dl>
+
+<hr>
+Methods inherited from <a href="InAndOutputs.html#Output">Output</a>:<br>
+<dl><dt><a name="ComplexOutput-setValue"><strong>setValue</strong></a>(self, value)</dt><dd><tt>Set this output value</tt></dd></dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Output">Output</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>asReference</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="Input">class <strong>Input</strong></a></font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Class WPS <a href="#Input">Input</a><br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="Input-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, type<font color="#909090">=None</font>)</dt><dd><tt><a href="#Input">Input</a> initialization<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+type {String} one of "LiteralValue", "ComplexValue" or<br>
+ "BoundingBoxValue"<br>
+ default: None</tt></dd></dl>
+
+<dl><dt><a name="Input-setValue"><strong>setValue</strong></a>(self, input)</dt><dd><tt>Control in some way the input value<br>
+ <br>
+Parameters:<br>
+input {pywps.Process.<a href="#Input">Input</a>}</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>maxOccurs</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>minOccurs</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="LiteralInput">class <strong>LiteralInput</strong></a>(<a href="InAndOutputs.html#Input">Input</a>)</font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Literal input type of input. <br>
+ <br>
+NOTE: The spacing parameter was not used yet<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="LiteralInput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, dataType<font color="#909090">=<type 'str'></font>, uoms<font color="#909090">=()</font>, values<font color="#909090">='*'</font>, spacing<font color="#909090">=None</font>, default<font color="#909090">=None</font>)</dt><dd><tt>Init the literal value type of input<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. Default: None<br>
+ default: None<br>
+uoms List of {String} value units<br>
+ default: ()<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+allowedValues List of {String} or {List} list of allowed values,<br>
+ which can be used with this input. You can set interval<br>
+ using list with two items, like:<br>
+ <br>
+ (1,2,3,(5,9),10,"a",("d","g"))<br>
+ <br>
+ This will produce allowed values 1,2,3,10, "a" and<br>
+ any value between 5 and 9 or "d" and "g".<br>
+ <br>
+ If "*" is used, it means "any value"<br>
+ default: ("*")<br>
+type {types.TypeType} value type, e.g. Integer, String, etc. you<br>
+ can uses the "types" module of python.<br>
+ default: types.StringType<br>
+default {Any} default value.<br>
+ default: None<br>
+spacing {Float} <br>
+ default: None</tt></dd></dl>
+
+<dl><dt><a name="LiteralInput-getValue"><strong>getValue</strong></a>(self)</dt><dd><tt>Get the input.value</tt></dd></dl>
+
+<dl><dt><a name="LiteralInput-setValue"><strong>setValue</strong></a>(self, input)</dt><dd><tt>Set input value value to this input</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>dataType</strong> = None</dl>
+
+<dl><dt><strong>default</strong> = None</dl>
+
+<dl><dt><strong>restrictedCharacters</strong> = [r'\', '#', ';', '&', '!']</dl>
+
+<dl><dt><strong>spacing</strong> = None</dl>
+
+<dl><dt><strong>uom</strong> = None</dl>
+
+<dl><dt><strong>uoms</strong> = None</dl>
+
+<dl><dt><strong>values</strong> = None</dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Input">Input</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>maxOccurs</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>minOccurs</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="LiteralOutput">class <strong>LiteralOutput</strong></a>(<a href="InAndOutputs.html#Output">Output</a>)</font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Literal output class<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="LiteralOutput-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, uoms<font color="#909090">=()</font>, dataType<font color="#909090">=<type 'str'></font>, default<font color="#909090">=None</font>, asReference<font color="#909090">=False</font>)</dt><dd><tt><a href="#Output">Output</a> of type LiteralValue<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. Default: None<br>
+ default: None<br>
+metadata List of {Dict} additional metadata<br>
+ default: ()<br>
+uoms List of {String} value units<br>
+ default: ()<br>
+dataType {types.TypeType} value type, e.g. Integer, String, etc. you<br>
+ can uses the "types" module of python.<br>
+ default: types.StringType<br>
+default {Any} default value.<br>
+ default: None<br>
+asReference {Boolean} wheather this output will be given back as<br>
+ reference or as file<br>
+ default: False</tt></dd></dl>
+
+<hr>
+Methods inherited from <a href="InAndOutputs.html#Output">Output</a>:<br>
+<dl><dt><a name="LiteralOutput-setValue"><strong>setValue</strong></a>(self, value)</dt><dd><tt>Set this output value</tt></dd></dl>
+
+<hr>
+Data and other attributes inherited from <a href="InAndOutputs.html#Output">Output</a>:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>asReference</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="Output">class <strong>Output</strong></a></font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Class WPS <a href="#Input">Input</a><br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="Output-__init__"><strong>__init__</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, type<font color="#909090">=None</font>, asReference<font color="#909090">=False</font>)</dt><dd><tt><a href="#Output">Output</a> initialization<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+type {String} one of "LiteralValue", "ComplexValue" or<br>
+ "BoundingBoxValue"<br>
+ default: None<br>
+asReference {Boolean} wheather this output will be given back as<br>
+ reference or as file<br>
+ default: False</tt></dd></dl>
+
+<dl><dt><a name="Output-setValue"><strong>setValue</strong></a>(self, value)</dt><dd><tt>Set this output value</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>asReference</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>type</strong> = None</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table></td></tr></table>
+</body></html>
\ No newline at end of file
Added: trunk/doc/Lang.html
===================================================================
--- trunk/doc/Lang.html 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/Lang.html 2008-09-03 15:16:49 UTC (rev 570)
@@ -0,0 +1,66 @@
+
+<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head><title>Python: module Lang</title>
+</head><body bgcolor="#f0f0f8">
+
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
+<tr bgcolor="#7799ee">
+<td valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>Lang</strong></big></big></font></td
+><td align=right valign=bottom
+><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jachym/usr/src/pywps/trunk/pywps/Process/Lang.py">/home/jachym/usr/src/pywps/trunk/pywps/Process/Lang.py</a></font></td></tr></table>
+ <p><tt>Set and get language codes, initialize translated messages, so that the<br>
+user scan use them directly in processes.<br>
+ <br>
+In the process:<br>
+ <br>
+ User has to define set of messages for all supported languages, like<br>
+ <br>
+ self.<strong>lang</strong>["eng"]["key1"] = "Hallo, world!"<br>
+ self.<strong>lang</strong>["eng"]["key2"] = "Foo"<br>
+ self.<strong>lang</strong>["eng"]["key3"] = "Bar"<br>
+ <br>
+ Than the user can use i18n(key) method, which returns the string<br>
+ in preset language (given by client request)</tt></p>
+<p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#aa55cc">
+<td colspan=3 valign=bottom> <br>
+<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
+
+<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
+<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
+</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ee77aa">
+<td colspan=3 valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
+
+<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
+<td width="100%"><dl>
+<dt><font face="helvetica, arial"><a href="Lang.html#Lang">Lang</a>
+</font></dt></dl>
+ <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="Lang">class <strong>Lang</strong></a></font></td></tr>
+
+<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="Lang-__init__"><strong>__init__</strong></a>(self)</dt></dl>
+
+<dl><dt><a name="Lang-get"><strong>get</strong></a>(self, key)</dt><dd><tt>Will return desired string in selected language</tt></dd></dl>
+
+<dl><dt><a name="Lang-getCode"><strong>getCode</strong></a>(self, langString)</dt></dl>
+
+<dl><dt><a name="Lang-initStrings"><strong>initStrings</strong></a>(self)</dt><dd><tt>Initialize self.<strong>strings</strong> object accoring to known codces from<br>
+<a href="#Lang">Lang</a>.py<br>
+ <br>
+It can be used later like:<br>
+ self.<strong>strings</strong>["eng"]["foo"] = "bar"</tt></dd></dl>
+
+<dl><dt><a name="Lang-setCode"><strong>setCode</strong></a>(self)</dt><dd><tt>Set choosen language code</tt></dd></dl>
+
+</td></tr></table></td></tr></table>
+</body></html>
\ No newline at end of file
Modified: trunk/doc/Makefile
===================================================================
--- trunk/doc/Makefile 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/Makefile 2008-09-03 15:16:49 UTC (rev 570)
@@ -1,11 +1,13 @@
FILE=pywps-howto
SRC=${FILE}.tex
PDFLATEX=pdflatex
+PROCESS=../pywps/Process
all: ${SRC}
make pdf
make html
make txt
+ make proces
pdf: ${SRC}
rm -f ${FILE}.pdf
@@ -18,12 +20,8 @@
txt: ${SRC} html/${FILE}.html
links2 -dump html/${FILE}.html > ${FILE}.txt
-process:
- ${SRC}
- cd ../pywps/Wps/
- pydoc -w ./process.py
- mv process.html ../../doc
- cd -
+process: ${PROCESS}
+ cd ${PROCESS} && pydoc -w ./Process.py && pydoc -w ./InAndOutputs.py && pydoc -w ./Lang.py && mv *.html ../../doc/
clean:
rm -f *.aux *.log *.out *.nav *.snm *.toc *~ *.log *.bak all
@@ -35,5 +33,6 @@
@echo all
@echo pdf
@echo txt
+ @echo process
@echo clean
@echo veryclean
Added: trunk/doc/Process.html
===================================================================
--- trunk/doc/Process.html 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/Process.html 2008-09-03 15:16:49 UTC (rev 570)
@@ -0,0 +1,341 @@
+
+<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head><title>Python: module Process</title>
+</head><body bgcolor="#f0f0f8">
+
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
+<tr bgcolor="#7799ee">
+<td valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>Process</strong></big></big></font></td
+><td align=right valign=bottom
+><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jachym/usr/src/pywps/trunk/pywps/Process/Process.py">/home/jachym/usr/src/pywps/trunk/pywps/Process/Process.py</a></font></td></tr></table>
+ <p><tt># Author: Jachym Cepicky<br>
+# <a href="http://les-ejk.cz">http://les-ejk.cz</a><br>
+# Lince: <br>
+# <br>
+# Web Processing Service implementation<br>
+# Copyright (C) 2006 Jachym Cepicky<br>
+# <br>
+# This program is free software; you can redistribute it and/or modify<br>
+# it under the terms of the GNU General Public License as published by<br>
+# the Free Software Foundation; either version 2 of the License.<br>
+# <br>
+# This program is distributed in the hope that it will be useful,<br>
+# but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
+# GNU General Public License for more details.<br>
+# <br>
+# You should have received a copy of the GNU General Public License<br>
+# along with this program; if not, write to the Free Software<br>
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</tt></p>
+<p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#aa55cc">
+<td colspan=3 valign=bottom> <br>
+<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
+
+<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
+<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="InAndOutputs.html">InAndOutputs</a><br>
+<a href="Lang.html">Lang</a><br>
+</td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br>
+<a href="sys.html">sys</a><br>
+</td><td width="25%" valign=top><a href="time.html">time</a><br>
+<a href="types.html">types</a><br>
+</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ee77aa">
+<td colspan=3 valign=bottom> <br>
+<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
+
+<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
+<td width="100%"><dl>
+<dt><font face="helvetica, arial"><a href="Process.html#Status">Status</a>
+</font></dt><dt><font face="helvetica, arial"><a href="Process.html#WPSProcess">WPSProcess</a>
+</font></dt></dl>
+ <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="Status">class <strong>Status</strong></a></font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt><a href="#Status">Status</a> object for each process<br>
+ <br>
+Attributes:<br>
+creationTime time.time()<br>
+code {String} "processstarted", "processfailed" or anything else<br>
+percentCompleted {Float} how far the calculation is<br>
+value {String} message string to the client<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="Status-onStatusChanged"><strong>onStatusChanged</strong></a>(self)</dt><dd><tt>To be redefined by other methods</tt></dd></dl>
+
+<dl><dt><a name="Status-set"><strong>set</strong></a>(self, msg<font color="#909090">=''</font>, percentDone<font color="#909090">=0</font>, propagate<font color="#909090">=True</font>)</dt><dd><tt>Set status message<br>
+ <br>
+Parameters:<br>
+msg {String} message for the client<br>
+percentDone {Float} percent > 0<br>
+propagate {Boolean} call onStatusChanged method</tt></dd></dl>
+
+<dl><dt><a name="Status-setProcessStatus"><strong>setProcessStatus</strong></a>(self, code, value)</dt><dd><tt>Sets current status of the process. Calls onStatusChanged method<br>
+ <br>
+Parameters:<br>
+code {String} one of "processaccepted" "processstarted"<br>
+ "processsucceeded" "processpaused" "processfailed"<br>
+value {String} additional message</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>code</strong> = None</dl>
+
+<dl><dt><strong>creationTime</strong> = 1220454837.6243529</dl>
+
+<dl><dt><strong>percentCompleted</strong> = 0</dl>
+
+<dl><dt><strong>value</strong> = None</dl>
+
+</td></tr></table> <p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#ffc8d8">
+<td colspan=3 valign=bottom> <br>
+<font color="#000000" face="helvetica, arial"><a name="WPSProcess">class <strong>WPSProcess</strong></a></font></td></tr>
+
+<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
+<td colspan=2><tt>Base class for any PyWPS Process<br> </tt></td></tr>
+<tr><td> </td>
+<td width="100%">Methods defined here:<br>
+<dl><dt><a name="WPSProcess-__init__"><strong>__init__</strong></a>(self, identifier, title<font color="#909090">=None</font>, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, profile<font color="#909090">=[]</font>, version<font color="#909090">=None</font>, statusSupported<font color="#909090">=True</font>, storeSupported<font color="#909090">=False</font>, grassLocation<font color="#909090">=None</font>)</dt><dd><tt>Process initialization. All parameters can be set lately<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} process identifier<br>
+title {String} process title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} process description<br>
+ default: None<br>
+metadata List of {Dict} aditional metadata. See<br>
+ <a href="http://www.opengeospatial.org/standards/common">http://www.opengeospatial.org/standards/common</a>, table 32 on page 65<br>
+ E.g. {"foo":"bar"}<br>
+ default: None<br>
+profile {URN}<br>
+ default: None<br>
+version {String} process version<br>
+ default: None<br>
+statusSupported {Boolean} this process can be run assynchronously<br>
+ default: True<br>
+storeSupported {Boolean} outputs from this process can be stored<br>
+ for later dowload<br>
+ default: True<br>
+grassLocation {String} or {Boolean} name of GRASS Location within<br>
+ "grassdbase" directory (from pywps.cfg configuration file).<br>
+ If set to True, temporary GRASS Location will be created<br>
+ and grass environment will be started. If None or False, no<br>
+ GRASS environment will be started.<br>
+ default: None</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addBBoxInput"><strong>addBBoxInput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, crss<font color="#909090">=['EPSG:4326']</font>)</dt><dd><tt>Add BoundingBox input<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+crss List of {String} supported coordinate systems.<br>
+ default: ["EPSG:4326"]</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addBBoxOutput"><strong>addBBoxOutput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, crs<font color="#909090">='EPSG:4326'</font>, dimensions<font color="#909090">=2</font>)</dt><dd><tt>Add new output item of type BoundingBoxValue to this process <br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+crss List of {String} supported coordinate systems.<br>
+ default: ["EPSG:4326"]<br>
+dimensions {Integer} number of dimensions<br>
+ default: 2</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addComplexInput"><strong>addComplexInput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, formats<font color="#909090">=[{'mimeType': 'text/xml'}]</font>, maxmegabites<font color="#909090">=5</font>)</dt><dd><tt>Add complex input to this process<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. <br>
+ default: None<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+formats List of {Dict} according to table 23 (page 25). E.g.<br>
+ [<br>
+ {"mimeType": "image/tiff"},<br>
+ {<br>
+ "mimeType": "text/xml",<br>
+ "encoding": "utf-8",<br>
+ "schema":"<a href="http://foo/bar">http://foo/bar</a>"<br>
+ }<br>
+ ]<br>
+ default: [{"mimeType":"text/xml"}]<br>
+maxmegabites {Float} Maximum input file size. Can not be bigger, as<br>
+ defined in global configuration file. <br>
+ default: 5</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addComplexOutput"><strong>addComplexOutput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, formats<font color="#909090">=[{'mimeType': 'text/xml'}]</font>)</dt><dd><tt>Add complex output to this process<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} output identifier<br>
+title {String} output title<br>
+ <br>
+Optional parameters:<br>
+metadata List of {Dict} {key:value} pairs. <br>
+ default: None<br>
+formats List of {Dict} according to table 23 (page 25). E.g.<br>
+ [<br>
+ {"mimeType": "image/tiff"},<br>
+ {<br>
+ "mimeType": "text/xml",<br>
+ "encoding": "utf-8",<br>
+ "schema":"<a href="http://foo/bar">http://foo/bar</a>"<br>
+ }<br>
+ ]<br>
+ default: [{"mimeType":"text/xml"}]</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addLiteralInput"><strong>addLiteralInput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, uoms<font color="#909090">=()</font>, minOccurs<font color="#909090">=1</font>, maxOccurs<font color="#909090">=1</font>, allowedValues<font color="#909090">='*'</font>, type<font color="#909090">=<type 'int'></font>, default<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>)</dt><dd><tt>Add new input item of type LiteralValue to this process<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. Default: None<br>
+ default: None<br>
+uoms List of {String} value units<br>
+ default: ()<br>
+minOccurs {Integer} minimum number of occurencies. <br>
+ default: 1<br>
+maxOccurs {Integer} maximum number of occurencies. <br>
+ default: 1<br>
+allowedValues List of {String} or {List} list of allowed values,<br>
+ which can be used with this input. You can set interval<br>
+ using list with two items, like:<br>
+ <br>
+ (1,2,3,(5,9),10,"a",("d","g"))<br>
+ <br>
+ This will produce allowed values 1,2,3,10, "a" and<br>
+ any value between 5 and 9 or "d" and "g".<br>
+ <br>
+ If "*" is used, it means "any value"<br>
+ default: ("*")<br>
+type {types.TypeType} value type, e.g. Integer, String, etc. you<br>
+ can uses the "types" module of python.<br>
+ default: types.IntType<br>
+default {Any} default value.<br>
+ default: None<br>
+metadata List of {Dict} Aditional metadata. E.g. {"foo":"bar"}<br>
+ default: None</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-addLiteralOutput"><strong>addLiteralOutput</strong></a>(self, identifier, title, abstract<font color="#909090">=None</font>, uoms<font color="#909090">=()</font>, type<font color="#909090">=<type 'int'></font>, default<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type LiteralValue to this process<br>
+ <br>
+Mandatory parameters:<br>
+identifier {String} input identifier<br>
+title {String} input title<br>
+ <br>
+Optional parameters:<br>
+abstract {String} input description. Default: None<br>
+ default: None<br>
+uoms List of {String} value units<br>
+ default: ()<br>
+type {types.TypeType} value type, e.g. Integer, String, etc. you<br>
+ can uses the "types" module of python.<br>
+ default: types.IntType<br>
+default {Any} default value.<br>
+ default: None</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-cmd"><strong>cmd</strong></a>(self, cmd, stdin<font color="#909090">=None</font>)</dt><dd><tt>Runs GRASS command, fetches all GRASS_MESSAGE and<br>
+GRASS_PERCENT messages and sets self.<strong>status</strong> according to them, so<br>
+the client application can track the progress information, when<br>
+runing with <a href="#Status">Status</a>=True<br>
+ <br>
+This module is supposed to be used instead of 'os.system()', while<br>
+running GRASS modules<br>
+ <br>
+Example Usage:<br>
+ Gcmd("r.los in=elevation.dem out=los coord=1000,1000")<br>
+ <br>
+ Gcmd("v.net.path network afcol=forward abcol=backward out=mypath nlayer=1","1 9 12")</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-getInput"><strong>getInput</strong></a>(self, identifier)</dt><dd><tt>Get input defined by identifier<br>
+ <br>
+Returns: None or Input</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-getInputValue"><strong>getInputValue</strong></a>(self, identifier)</dt><dd><tt>Get input value according to identifier<br>
+ <br>
+Returns: None or self.<strong>inputs</strong>[identifier].value</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-i18n"><strong>i18n</strong></a>(self, key)</dt><dd><tt>Give back translation of defined key<br>
+ <br>
+Returns: {String} translated string</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-initProcess"><strong>initProcess</strong></a>(self, title<font color="#909090">=None</font>, abstract<font color="#909090">=None</font>, metadata<font color="#909090">=[]</font>, profile<font color="#909090">=[]</font>, version<font color="#909090">=None</font>, statusSupported<font color="#909090">=True</font>, storeSupported<font color="#909090">=False</font>, grassLocation<font color="#909090">=None</font>)</dt><dd><tt>Can be used for later process re-initialization <br>
+ <br>
+For parameters, see __init__ method options.</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-message"><strong>message</strong></a>(self, msg, force<font color="#909090">=False</font>)</dt><dd><tt>Print some message to standard error<br>
+ <br>
+Parameters:<br>
+msg {String} print this string to standard error<br>
+force {Boolean} if self.<strong>debug</strong> or force == True, the message will be<br>
+ printed. nothing happen otherwise.</tt></dd></dl>
+
+<dl><dt><a name="WPSProcess-setOutputValue"><strong>setOutputValue</strong></a>(self, identifier, value)</dt><dd><tt>Set output value<br>
+ <br>
+Returns: None</tt></dd></dl>
+
+<hr>
+Data and other attributes defined here:<br>
+<dl><dt><strong>abstract</strong> = None</dl>
+
+<dl><dt><strong>debug</strong> = None</dl>
+
+<dl><dt><strong>grassLocation</strong> = None</dl>
+
+<dl><dt><strong>identifier</strong> = None</dl>
+
+<dl><dt><strong>inputs</strong> = None</dl>
+
+<dl><dt><strong>lang</strong> = None</dl>
+
+<dl><dt><strong>metadata</strong> = None</dl>
+
+<dl><dt><strong>outputs</strong> = None</dl>
+
+<dl><dt><strong>profile</strong> = None</dl>
+
+<dl><dt><strong>status</strong> = None</dl>
+
+<dl><dt><strong>statusSupported</strong> = None</dl>
+
+<dl><dt><strong>storeSupported</strong> = None</dl>
+
+<dl><dt><strong>title</strong> = None</dl>
+
+<dl><dt><strong>version</strong> = None</dl>
+
+<dl><dt><strong>wsdl</strong> = None</dl>
+
+</td></tr></table></td></tr></table>
+</body></html>
\ No newline at end of file
Added: trunk/doc/examples/HTTP_GET.txt
===================================================================
--- trunk/doc/examples/HTTP_GET.txt 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/examples/HTTP_GET.txt 2008-09-03 15:16:49 UTC (rev 570)
@@ -0,0 +1,31 @@
+# Following examples do try to describe possible usages of WPS, via HTTP
+# Get request. The examples do contain page reference in it's description,
+# to OGC WPS 05-007r7, to be found at
+# http://opengeospatial.org/standards/wps
+#
+# output as reference
+# resulting ComplexValues will be stored on the server, only URL will be
+# send back to client
+#
+# page 37, table 51,
+version=1.0.0&service=wps&request=execute&identifier=exampleBufferNoInputsProcess&responsedocument=[buffer=@asreference=true]
+
+# output part of Execute response
+# resulting ComplexValue will be part of Execute response - if it is binary
+# (raster) file, it will be stored in CDATA section
+#
+# page 37, table 51,
+version=1.0.0&service=wps&request=execute&identifier=exampleBufferNoInputsProcess&responsedocument=[buffer=@asreference=false]
+
+# lineage outputs
+# part of response document will be description of data outputs
+#
+# page 38, table 53,
+version=1.0.0&service=wps&request=execute&identifier=exampleBufferNoInputsProcess&responsedocument=[buffer=@asreference=true]&lineage=true
+
+# store execute response
+# the response document will be stored on the server for later reference
+#
+# page 38, table 53,
+version=1.0.0&service=wps&request=execute&identifier=exampleBufferNoInputsProcess&responsedocument=[buffer=@asreference=true]&StoreExecuteResponse=true
+
Copied: trunk/doc/examples/wps_execute_request-rawdataoutput.xml (from rev 555, trunk/doc/wps_execute_request-rawdataoutput.xml)
Added: trunk/doc/examples/wps_execute_request-responsedocument.xml
===================================================================
--- trunk/doc/examples/wps_execute_request-responsedocument.xml 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/examples/wps_execute_request-responsedocument.xml 2008-09-03 15:16:49 UTC (rev 570)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!-- Execute operation request assuming use of default formats, and RawDataOutput.-->
+<!-- Equivalent GET request is
+ http://foo.bar/foo?
+ Service=WPS&
+ Version=1.0.0&
+ Language=en-CA&
+ Request=Execute&
+ Identifier=Buffer&
+ DataInputs=[InputPolygon=@xlink:href=http%3A%2F%2Ffoo.bar%2Fsome_WFS_request.xml;BufferDistance=400]&
+ RawDataOutput=[BufferedPolygon]
+
+-->
+<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
+ <ows:Identifier>exampleBufferProcess</ows:Identifier>
+ <wps:DataInputs>
+ <wps:Input>
+ <ows:Identifier>data</ows:Identifier>
+ <ows:Title>Input</ows:Title>
+ <wps:Reference xlink:href="http://localhost/temp/gml.xml"/>
+ </wps:Input>
+ <wps:Input>
+ <ows:Identifier>width</ows:Identifier>
+ <ows:Title>buffer width</ows:Title>
+ <wps:Data>
+ <wps:LiteralData>400</wps:LiteralData>
+ </wps:Data>
+ </wps:Input>
+ </wps:DataInputs>
+ <wps:ResponseForm>
+ <wps:ResponseDocument wps:lineage="true" wps:storeExecuteResponse="true" wps:status="frue">
+ <wps:Output wps:asReference="true">
+ <ows:Identifier>buffer</ows:Identifier>
+ </wps:Output>
+ </wps:ResponseDocument>
+ </wps:ResponseForm>
+</wps:Execute>
Deleted: trunk/doc/process.html
===================================================================
--- trunk/doc/process.html 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/process.html 2008-09-03 15:16:49 UTC (rev 570)
@@ -1,301 +0,0 @@
-
-<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html><head><title>Python: module process</title>
-</head><body bgcolor="#f0f0f8">
-
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
-<tr bgcolor="#7799ee">
-<td valign=bottom> <br>
-<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>process</strong></big></big></font></td
-><td align=right valign=bottom
-><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jachym/src/pywps/trunk/pywps/Wps/process.py">/home/jachym/src/pywps/trunk/pywps/Wps/process.py</a></font></td></tr></table>
- <p><tt># Author: Jachym Cepicky<br>
-# <a href="http://les-ejk.cz">http://les-ejk.cz</a><br>
-# Lince: <br>
-# <br>
-# Web Processing Service implementation<br>
-# Copyright (C) 2006 Jachym Cepicky<br>
-# <br>
-# This program is free software; you can redistribute it and/or modify<br>
-# it under the terms of the GNU General Public License as published by<br>
-# the Free Software Foundation; either version 2 of the License.<br>
-# <br>
-# This program is distributed in the hope that it will be useful,<br>
-# but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
-# GNU General Public License for more details.<br>
-# <br>
-# You should have received a copy of the GNU General Public License<br>
-# along with this program; if not, write to the Free Software<br>
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</tt></p>
-<p>
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
-<tr bgcolor="#aa55cc">
-<td colspan=3 valign=bottom> <br>
-<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
-
-<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
-<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
-<a href="string.html">string</a><br>
-</td><td width="25%" valign=top><a href="subprocess.html">subprocess</a><br>
-<a href="sys.html">sys</a><br>
-</td><td width="25%" valign=top><a href="wpsexceptions.html">wpsexceptions</a><br>
-</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
-<tr bgcolor="#ee77aa">
-<td colspan=3 valign=bottom> <br>
-<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
-
-<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
-<td width="100%"><dl>
-<dt><font face="helvetica, arial"><a href="process.html#WPSProcess">WPSProcess</a>
-</font></dt><dd>
-<dl>
-<dt><font face="helvetica, arial"><a href="process.html#GRASSWPSProcess">GRASSWPSProcess</a>
-</font></dt></dl>
-</dd>
-</dl>
- <p>
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
-<tr bgcolor="#ffc8d8">
-<td colspan=3 valign=bottom> <br>
-<font color="#000000" face="helvetica, arial"><a name="GRASSWPSProcess">class <strong>GRASSWPSProcess</strong></a>(<a href="process.html#WPSProcess">WPSProcess</a>)</font></td></tr>
-
-<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
-<td colspan=2><tt>This class is to be used as base class for WPS processes in PyWPS<br>
-script. To be able to use it's methods (functions), you have to start<br>
-your process with following lines:<br>
- <br>
-from pywps.Wps.process import <a href="#GRASSWPSProcess">GRASSWPSProcess</a><br>
- <br>
-class Process(<a href="#GRASSWPSProcess">GRASSWPSProcess</a>):<br>
- def <a href="#GRASSWPSProcess-__init__">__init__</a>(self):<br>
- <a href="#WPSProcess">WPSProcess</a>.<a href="#GRASSWPSProcess-__init__">__init__</a>(self,<br>
- Identifier="your_process_identifier",<br>
- Title="Your process title",<br>
- Abstract="Add optional abstract",<br>
- storeSupported="true",<br>
- grassLocation="/home/grass/spearfish60/",<br>
- ...)<br>
- <br>
-Than you can add cusom process inputs and outputs:<br>
- <br>
- <a href="#GRASSWPSProcess-AddLiteralInput">AddLiteralInput</a>(Identifier="your_input_identifier",<br>
- Title="Your input title",<br>
- type=type(0), # integers only,<br>
- ...)<br>
- <br>
- <a href="#GRASSWPSProcess-AddComplexInput">AddComplexInput</a>(Identifier="your_gml",<br>
- Title="Your gml input title",<br>
- ...)<br>
- <br>
- <br>
-And you can ofcourse define your process outputs too:<br>
- <br>
- <a href="#GRASSWPSProcess-AddLiteralOutput">AddLiteralOutput</a>(Identifier="output1",<br>
- Title="First output",<br>
- ...)<br>
- <a href="#GRASSWPSProcess-AddComplexValueOutput">AddComplexValueOutput</a>(Identifier="gmlout",<br>
- Title="Embed GML",<br>
- ...)<br>
- <br>
-At the and, you can access the values of in- and outputs with help of<br>
-GetInputValue and SetOutputValue methods:<br>
- <br>
- def execute(self):<br>
- <br>
- inputvalue = <a href="#GRASSWPSProcess-GetInputValue">GetInputValue</a>("your_input_identifier")<br>
- inputGMLFile = <a href="#GRASSWPSProcess-GetInputValue">GetInputValue</a>("your_gml")<br>
- <br>
- <a href="#GRASSWPSProcess-SetOutputValue">SetOutputValue</a>("output1", inputvalue)<br>
- <a href="#GRASSWPSProcess-SetOutputValue">SetOutputValue</a>("gmlout", inputGMLFile)<br>
- <br>
- return<br>
- <br>
-NOTE: Try to use <a href="#GRASSWPSProcess-Cmd">Cmd</a>("shell command") instead of os.system for<br>
- GRASS modules. It will update your self.<strong>status</strong> report<br>
- automatically.<br>
- <br>
- Try to use <a href="#GRASSWPSProcess-GCmd">GCmd</a>("g.module") as well, it will update<br>
- self.<strong>status</strong> report based on percentage output from GRASS modules.<br> </tt></td></tr>
-<tr><td> </td>
-<td width="100%">Methods defined here:<br>
-<dl><dt><a name="GRASSWPSProcess-GCmd"><strong>GCmd</strong></a>(self, cmd, stdin<font color="#909090">=None</font>)</dt><dd><tt>Runs GRASS command, fetches all GRASS_MESSAGE and<br>
-GRASS_PERCENT messages and sets self.<strong>status</strong> according to them, so<br>
-the client application can track the progress information, when<br>
-runing with Status=True<br>
- <br>
-This module is supposed to be used instead of 'os.system()', while<br>
-running GRASS modules<br>
- <br>
-Example Usage:<br>
- Gcmd("r.los in=elevation.dem out=los coord=1000,1000")<br>
- <br>
- Gcmd("v.net.path network afcol=forward abcol=backward out=mypath nlayer=1","1 9 12")</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-__init__"><strong>__init__</strong></a>(self, Identifier, Title, processVersion<font color="#909090">='1.0'</font>, Abstract<font color="#909090">=''</font>, statusSupported<font color="#909090">='false'</font>, storeSupported<font color="#909090">='false'</font>, grassLocation<font color="#909090">=None</font>)</dt></dl>
-
-<hr>
-Methods inherited from <a href="process.html#WPSProcess">WPSProcess</a>:<br>
-<dl><dt><a name="GRASSWPSProcess-AddBBoxInput"><strong>AddBBoxInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, value<font color="#909090">=[]</font>)</dt><dd><tt>Add new input item of type BoundingBox to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddBBoxOutput"><strong>AddBBoxOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, value<font color="#909090">=[]</font>)</dt><dd><tt>Add new output item of type BoundingBoxOutput to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddComplexInput"><strong>AddComplexInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new input item of type ComplexValue to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddComplexValueOutput"><strong>AddComplexValueOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type ComplexValue to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddComplexValueReferenceOutput"><strong>AddComplexValueReferenceOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type ComplexValueValueReference to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddLiteralInput"><strong>AddLiteralInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, UOMs<font color="#909090">='m'</font>, MinimumOccurs<font color="#909090">=1</font>, allowedvalues<font color="#909090">='*'</font>, type<font color="#909090">=<type 'str'></font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new input item of type LiteralValue to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddLiteralOutput"><strong>AddLiteralOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, UOMs<font color="#909090">='m'</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type LiteralValue to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-AddMetadata"><strong>AddMetadata</strong></a>(self, Identifier, type, textContent)</dt><dd><tt>Add new metadata to this process</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-Cmd"><strong>Cmd</strong></a>(self, cmd, stdin<font color="#909090">=None</font>)</dt><dd><tt>Runs command, fetches all messages and<br>
-and sets self.<strong>status</strong> according to them, so<br>
-the client application can track the progress information, when<br>
-runing with Status=True<br>
- <br>
-This module is supposed to be used instead of 'os.system()', while<br>
-running unix commands<br>
- <br>
-For GRASS modules, use <a href="#GRASSWPSProcess-GCmd">GCmd</a>(cmd)<br>
- <br>
-Example Usage:<br>
- <a href="#GRASSWPSProcess-Cmd">Cmd</a>("gdalwarp -s_srs +init="epsg:4326" -t_srs +init="esri:102067")<br>
- <br>
- output = <a href="#GRASSWPSProcess-Cmd">Cmd</a>("cs2cs +proj=latlong +datum=NAD83 +to +proj=utm +zone=10 +datum=NAD27",<br>
- "45d15.551666667N -111d30")</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-GetInput"><strong>GetInput</strong></a>(self, Identifier)</dt><dd><tt>Returns input of defined identifier</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-GetInputValue"><strong>GetInputValue</strong></a>(self, Identifier)</dt><dd><tt>Get value of selected input</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-GetOutput"><strong>GetOutput</strong></a>(self, Identifier)</dt><dd><tt>Returns output of defined identifier</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-GetOutputValue"><strong>GetOutputValue</strong></a>(self, Identifier)</dt><dd><tt>Get value of selected output</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-SetOutputValue"><strong>SetOutputValue</strong></a>(self, Identifier, value)</dt><dd><tt>Set value of selected output</tt></dd></dl>
-
-<dl><dt><a name="GRASSWPSProcess-SetStatus"><strong>SetStatus</strong></a>(self, message<font color="#909090">=None</font>, percent<font color="#909090">=None</font>)</dt><dd><tt>Sets self.<strong>status</strong> variable according to given message and<br>
-percents</tt></dd></dl>
-
-</td></tr></table> <p>
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
-<tr bgcolor="#ffc8d8">
-<td colspan=3 valign=bottom> <br>
-<font color="#000000" face="helvetica, arial"><a name="WPSProcess">class <strong>WPSProcess</strong></a></font></td></tr>
-
-<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
-<td colspan=2><tt>This class is to be used as base class for WPS processes in PyWPS<br>
-script. To be able to use it's methods (functions), you have to start<br>
-your process with following lines:<br>
- <br>
-from pywps.Wps.process import <a href="#WPSProcess">WPSProcess</a><br>
- <br>
-class Process(<a href="#WPSProcess">WPSProcess</a>):<br>
- def <a href="#WPSProcess-__init__">__init__</a>(self):<br>
- <a href="#WPSProcess">WPSProcess</a>.<a href="#WPSProcess-__init__">__init__</a>(self,<br>
- Identifier="your_process_identifier",<br>
- Title="Your process title",<br>
- Abstract="Add optional abstract",<br>
- storeSupported="true",<br>
- ...)<br>
- <br>
-Than you can add cusom process inputs and outputs:<br>
- <br>
- <a href="#WPSProcess-AddLiteralInput">AddLiteralInput</a>(Identifier="your_input_identifier",<br>
- Title="Your input title",<br>
- type=type(0), # integers only,<br>
- ...)<br>
- <br>
- <a href="#WPSProcess-AddComplexInput">AddComplexInput</a>(Identifier="your_gml",<br>
- Title="Your gml input title",<br>
- ...)<br>
- <br>
- <br>
-And you can ofcourse define your process outputs too:<br>
- <br>
- <a href="#WPSProcess-AddLiteralOutput">AddLiteralOutput</a>(Identifier="output1",<br>
- Title="First output",<br>
- ...)<br>
- <a href="#WPSProcess-AddComplexValueOutput">AddComplexValueOutput</a>(Identifier="gmlout",<br>
- Title="Embed GML",<br>
- ...)<br>
- <br>
-At the and, you can access the values of in- and outputs with help of<br>
-GetInputValue and SetOutputValue methods:<br>
- <br>
- def execute(self):<br>
- <br>
- inputvalue = <a href="#WPSProcess-GetInputValue">GetInputValue</a>("your_input_identifier")<br>
- inputGMLFile = <a href="#WPSProcess-GetInputValue">GetInputValue</a>("your_gml")<br>
- <br>
- <a href="#WPSProcess-SetOutputValue">SetOutputValue</a>("output1", inputvalue)<br>
- <a href="#WPSProcess-SetOutputValue">SetOutputValue</a>("gmlout", inputGMLFile)<br>
- <br>
- return<br>
- <br>
-NOTE: Try to use Gcmd("shell command") instead of os.system for<br>
- GRASS modules. It will update your self.<strong>status</strong> report<br>
- automatically, based on percentage output from GRASS modules.<br> </tt></td></tr>
-<tr><td> </td>
-<td width="100%">Methods defined here:<br>
-<dl><dt><a name="WPSProcess-AddBBoxInput"><strong>AddBBoxInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, value<font color="#909090">=[]</font>)</dt><dd><tt>Add new input item of type BoundingBox to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddBBoxOutput"><strong>AddBBoxOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, value<font color="#909090">=[]</font>)</dt><dd><tt>Add new output item of type BoundingBoxOutput to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddComplexInput"><strong>AddComplexInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new input item of type ComplexValue to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddComplexValueOutput"><strong>AddComplexValueOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type ComplexValue to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddComplexValueReferenceOutput"><strong>AddComplexValueReferenceOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, Formats<font color="#909090">=['text/xml']</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type ComplexValueValueReference to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddLiteralInput"><strong>AddLiteralInput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, UOMs<font color="#909090">='m'</font>, MinimumOccurs<font color="#909090">=1</font>, allowedvalues<font color="#909090">='*'</font>, type<font color="#909090">=<type 'str'></font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new input item of type LiteralValue to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddLiteralOutput"><strong>AddLiteralOutput</strong></a>(self, Identifier, Title<font color="#909090">=None</font>, Abstract<font color="#909090">=None</font>, UOMs<font color="#909090">='m'</font>, value<font color="#909090">=None</font>)</dt><dd><tt>Add new output item of type LiteralValue to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-AddMetadata"><strong>AddMetadata</strong></a>(self, Identifier, type, textContent)</dt><dd><tt>Add new metadata to this process</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-Cmd"><strong>Cmd</strong></a>(self, cmd, stdin<font color="#909090">=None</font>)</dt><dd><tt>Runs command, fetches all messages and<br>
-and sets self.<strong>status</strong> according to them, so<br>
-the client application can track the progress information, when<br>
-runing with Status=True<br>
- <br>
-This module is supposed to be used instead of 'os.system()', while<br>
-running unix commands<br>
- <br>
-For GRASS modules, use GCmd(cmd)<br>
- <br>
-Example Usage:<br>
- <a href="#WPSProcess-Cmd">Cmd</a>("gdalwarp -s_srs +init="epsg:4326" -t_srs +init="esri:102067")<br>
- <br>
- output = <a href="#WPSProcess-Cmd">Cmd</a>("cs2cs +proj=latlong +datum=NAD83 +to +proj=utm +zone=10 +datum=NAD27",<br>
- "45d15.551666667N -111d30")</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-GetInput"><strong>GetInput</strong></a>(self, Identifier)</dt><dd><tt>Returns input of defined identifier</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-GetInputValue"><strong>GetInputValue</strong></a>(self, Identifier)</dt><dd><tt>Get value of selected input</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-GetOutput"><strong>GetOutput</strong></a>(self, Identifier)</dt><dd><tt>Returns output of defined identifier</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-GetOutputValue"><strong>GetOutputValue</strong></a>(self, Identifier)</dt><dd><tt>Get value of selected output</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-SetOutputValue"><strong>SetOutputValue</strong></a>(self, Identifier, value)</dt><dd><tt>Set value of selected output</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-SetStatus"><strong>SetStatus</strong></a>(self, message<font color="#909090">=None</font>, percent<font color="#909090">=None</font>)</dt><dd><tt>Sets self.<strong>status</strong> variable according to given message and<br>
-percents</tt></dd></dl>
-
-<dl><dt><a name="WPSProcess-__init__"><strong>__init__</strong></a>(self, Identifier, Title, processVersion<font color="#909090">='1.0'</font>, Abstract<font color="#909090">=''</font>, statusSupported<font color="#909090">='false'</font>, storeSupported<font color="#909090">='false'</font>)</dt></dl>
-
-</td></tr></table></td></tr></table><p>
-<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
-<tr bgcolor="#55aa55">
-<td colspan=3 valign=bottom> <br>
-<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
-
-<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
-<td width="100%"><strong>called</strong> = 0</td></tr></table>
-</body></html>
\ No newline at end of file
Deleted: trunk/doc/wps_execute_request-rawdataoutput.xml
===================================================================
--- trunk/doc/wps_execute_request-rawdataoutput.xml 2008-09-03 15:02:10 UTC (rev 569)
+++ trunk/doc/wps_execute_request-rawdataoutput.xml 2008-09-03 15:16:49 UTC (rev 570)
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<!-- Execute operation request assuming use of default formats, and RawDataOutput.-->
-<!-- Equivalent GET request is
- http://foo.bar/foo?
- Service=WPS&
- Version=1.0.0&
- Language=en-CA&
- Request=Execute&
- Identifier=Buffer&
- DataInputs=[InputPolygon=@xlink:href=http%3A%2F%2Ffoo.bar%2Fsome_WFS_request.xml;BufferDistance=400]&
- RawDataOutput=[BufferedPolygon]
-
--->
-<wps:Execute service="WPS" version="1.0.0" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0/wpsExecute_request.xsd">
- <ows:Identifier>buffer</ows:Identifier>
- <wps:DataInputs>
- <wps:Input>
- <ows:Identifier>data</ows:Identifier>
- <ows:Title>Input</ows:Title>
- <wps:Reference xlink:href="http://localhost/temp/gml.xml"/>
- </wps:Input>
- <wps:Input>
- <ows:Identifier>width</ows:Identifier>
- <ows:Title>buffer width</ows:Title>
- <wps:Data>
- <wps:LiteralData>400</wps:LiteralData>
- </wps:Data>
- </wps:Input>
- </wps:DataInputs>
- <wps:ResponseForm>
- <wps:RawDataOutput>
- <ows:Identifier>text</ows:Identifier>
- </wps:RawDataOutput>
- </wps:ResponseForm>
-</wps:Execute>
More information about the Pywps-commits
mailing list