No subject
Fri Feb 15 17:33:44 CET 2008
Santiago de Cali
Web Site :http://www.fromsky.net
e-mail:
andres at hrglobalideas.com
fherrera at parquesoft.com
fandresherrera at hotmail.com
------=_Part_7350_23969103.1207191450520
Content-Type: text/html; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<br>Hi List, setting up pywps reading the <a href="http://pywps.ominiverdi.org/wiki/index.php/PywpsTutorials">http://pywps.ominiverdi.org/wiki/index.php/PywpsTutorials</a><br><br>i tried the example running the followind command <br>
<br>./wps.py "service=WPS&version=0.4.0&identifier=addvalue&request=execute&datainputs=input,/tmp/roads.tif,2,250&status=false&store=true"<br><br>i got the next output <br><br><br>PyWPS debug 0: {'status': 'false', 'service': 'WPS', 'request': 'execute', 'version': '0.4.0', 'datainputs': {'input': '/tmp/roads.tif', '2': '250'}, 'identifier': ['addvalue'], 'store': 'true'}<br>
PyWPS GCmd: r.in.gdal -o input=input output=input<br>PyWPS Status: Data imported<br>PyWPS Cmd: gdalinfo input<br>PyWPS GCmd: g.region rast=input.red<br>PyWPS GCmd: r.composite r=input.red b=input.blue g=input.green out=input<br>
PyWPS GCmd: g.region rast=input<br> +----------------------------------------------------------------------------+<br><br> | Layer: input Date: Wed Apr 2 22:50:59 2008 |<br><br> | Mapset: mapset Login of Creator: root |<br>
<br> | Location: tmppywpsPlmL8i |<br><br> | DataBase: /tmp |<br><br> | Title: ( input )
|<br>
<br> | timestamp: none |<br><br> |----------------------------------------------------------------------------|<br><br> | |<br>
<br> | Type of Map: raster Number of Categories: 32767 |<br><br> | Data Type: CELL |<br><br> | Rows: 400 &
nbsp; |<br>
<br> | Columns: 400 |<br><br> | Total Cells: 160000 |<br><br> | Projection: x,y (zone 0)  
; |<br>
<br> | N: 185737 S: 175737 Res: 25 |<br><br> | E: 535412 W: 525412 Res: 25 |<br><br> | Range of data: min = 728 max = 32767 |<br>
<br> | |<br><br> | Data Source: |<br><br> | &n
bsp; |<br>
<br> | |<br><br> | |<br><br> | Data Description: &nb
sp; |<br>
<br> | generated by r.composite |<br><br> | |<br><br> | Comments: &nbs
p; |<br>
<br> | r.composite red="input.red" green="input.green" blue="input.blue" le\ |<br><br> | vels=32 output="input" |<br><br> | |<br>
<br> +----------------------------------------------------------------------------+<br><br><br><br>PyWPS ERROR: float() argument must be a string or a number in process Add some value to some raster map, method execute()<br>
Content-type: text/xml<br><br><?xml version="1.0" encoding="utf-8"?><ExecuteResponse version="0.4.0" xmlns="<a href="http://www.opengeospatial.net/wps">http://www.opengeospatial.net/wps</a>" xmlns:ows="<a href="http://www.opengeospatial.net/ows">http://www.opengeospatial.net/ows</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengeospatial.net/wps">http://www.opengeospatial.net/wps</a> <a href="http://www.ogcnetwork.net/schemas/wps/0.4.0/wpsExecute.xsd">http://www.ogcnetwork.net/schemas/wps/0.4.0/wpsExecute.xsd</a>"><ows:Identifier>addvalue</ows:Identifier><Status><ProcessFailed><ows:ExceptionReport verion="1.0"><ows:Exception exceptionCode="NoApli
cableCode"><ows:ExceptionText>float() argument must be a string or a number</ows:ExceptionText></ows:Exception></ows:ExceptionReport></ProcessFailed></Status></ExecuteResponse><br>
<br><br>and trying the same command over web browser got the same exception output <br><br><a href="http://192.168.11.150/cgi-bin/wps.py?service=WPS&version=0.4.0&identifier=addvalue&request=execute&datainputs=input,/tmp/roads.tif,value,250&status=false&store=true">http://192.168.11.150/cgi-bin/wps.py?service=WPS&version=0.4.0&identifier=addvalue&request=execute&datainputs=input,/tmp/roads.tif,value,250&status=false&store=true</a><br>
<br><ExecuteResponse version="0.4.0" xsi:schemaLocation="<a href="http://www.opengeospatial.net/wps">http://www.opengeospatial.net/wps</a> <a href="http://www.ogcnetwork.net/schemas/wps/0.4.0/wpsExecute.xsd">http://www.ogcnetwork.net/schemas/wps/0.4.0/wpsExecute.xsd</a>"><br>
<ows:Identifier>addvalue</ows:Identifier><br>−<br> <Status><br>−<br> <ProcessFailed><br>−<br> <ows:ExceptionReport verion="1.0"><br>−<br> <ows:Exception exceptionCode="NoAplicableCode"><br>
−<br> <ows:ExceptionText><br>Could not perform command: r.out.gdal in=output out=/tmp/pokus.png type=Byte<br></ows:ExceptionText><br></ows:Exception><br></ows:ExceptionReport><br></ProcessFailed><br>
</Status><br></ExecuteResponse>m<br><br><br>my question is what im doing bad ?? could be a grass config ?? or some missing parameter in processes addvalue script ..<br><br>any idea should be helpfull ..<br><br>
thanks a lot .. <br><br><br><br>-- <br>=====================================================<br>Ing. Fabio Andres Herrera<br>Gerente de Proyectos<br>From Sky - UAV & RPV Systems<br>Santiago de Cali<br>Web Site :<a href="http://www.fromsky.net">http://www.fromsky.net</a><br>
e-mail: <br> <a href="mailto:andres at hrglobalideas.com">andres at hrglobalideas.com</a><br> <a href="mailto:fherrera at parquesoft.com">fherrera at parquesoft.com</a><br> <a href="mailto:fandresherrera at hotmail.com">fandresherrera at hotmail.com</a>
------=_Part_7350_23969103.1207191450520--
More information about the Pywps-devel
mailing list