[Zoo-discuss] [ZOO-Discuss] FOSS4G 2010 ZOO Workshop Problem

Fenoy Gerald gerald.fenoy at geolabs.fr
Mon Nov 18 05:57:49 PST 2013


Hi Christian,
sorry for answering your email so late.

I found an issue in the ZCFG file the output was not named « Result » but « BufferedPolygon ».

I guess that once you updated the ZCFG file everything should run smoothly.

Note that with this version of the Python service you will have to use the Polygon and MultiPolygon.

Hope this helps you,
Best regards,

Gérald Fenoy
gerald.fenoy at geolabs.fr



Le 18 nov. 2013 à 14:51, Christian Rüh <christian.rueh at uni-rostock.de> a écrit :

> Hi Gerald,
> 
> thank you for the fast answer that helped me a lot :-)
> I was able to fix the problem with your hint.
> 
> However, the next problem was right around the corner. After the ConvexHull and Centroid functions worked fine the Buffer function won't.
> 
> I get the following error:
> <ows:ExceptionText>
> TRACE : ('Result',)
> TRACE : <type 'exceptions.KeyError'>
> Unable to run your python process properly. Please check the following messages : ['  File "/usr/lib/cgi-bin/ogr_ws_service_provider.py", line 54, in Buffer\n    outputResult(outputs["Result"],rgeom)\n']
> </ows:ExceptionText>
> 
> I've looked into keyerrors and python but wasn't able to resolve this issue. Especially since the line (54)
> "outputResult(outputs["Result"],rgeom)"
> was used in all the other functions as well and worked fine there.
> 
> I attached my Buffer.zcfg and ogr_ws_service_provider.py.
> 
> I really hope you can help me with this problem, too, and am thankful in advance :-)
> 
> Cheers and thanks,
> Christian
> 
> ________________________________________
> Von: Fenoy Gerald [gerald.fenoy at geolabs.fr]
> Gesendet: Freitag, 15. November 2013 16:18
> An: ZOO-discuss
> Cc: Christian Rüh
> Betreff: Re: [ZOO-Discuss] FOSS4G 2010 ZOO Workshop Problem
> 
> Hi Christian,
> it seems that the issue is only in the Python service code.
> 
> I noticed a strange thing in the error message, it seems that there is a tabulation ("\t") which was inserted by mistake in the ogr_ws_service_provider.py file on line 18.
> 
> Check the expression on line 18 and remove any tabulation located near the "name()=\’Multipolygon\’"
> 
> Hope this solve your issue.
> 
> Best regards,
> 
> 
> Le 15 nov. 2013 à 15:24, Sickboy <christian.rueh at uni-rostock.de> a écrit :
> 
>> Hi there,
>> 
>> I tried to do the above workshop
>> (http://www.zoo-project.org/site/ZooWorkshop2010/Content) and got stuck at
>> step 3.3.1.2 (Creating WPS compliant OGR based Web Services -> Implementing
>> single geometry processes -> Boundary -> Python version). I wasn't able to
>> compile the C version (I'm don't really know anything about C and Linux
>> which might be the problem) so I went for the Python version. If I try one
>> of the URLs given to test the process I get:
>> <ows:ExceptionReport xsi:schemaLocation="http://www.opengis.net/ows/1.1
>> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" xml:lan="en"
>> service="WPS" version="1.0.0">
>> <ows:Exception exceptionCode="NoApplicableCode">
>> <ows:ExceptionText>
>> TRACE : xmlXPathEval() failed
>> TRACE : <class 'libxml2.xpathError'>
>> Unable to run your python process properly. Please check the following
>> messages : ['  File "/usr/lib/cgi-bin/ogr_ws_service_provider.py", line 18,
>> in Boundary\n
>> geometry=createGeometryFromWFS(inputs["InputPolygon"]["value"])\n', '  File
>> "/usr/lib/cgi-bin/ogr_ws_service_provider.py", line 7, in
>> createGeometryFromWFS\n
>> res=ctxt.xpathEval("/*/*/*/*/*[local-name()=\'Polygon\' or
>> local-\tname()=\'MultiPolygon\']")\n', '  File
>> "/usr/lib/pymodules/python2.6/libxml2.py", line 4894, in xpathEval\n    if
>> ret is None:raise xpathError(\'xmlXPathEval() failed\')\n']
>> </ows:ExceptionText>
>> </ows:Exception>
>> </ows:ExceptionReport>
>> 
>> There seems to be a problem with the libxml2 library but even with googling
>> I was not able to fix it.
>> 
>> The Geoserver was started when the document told me to (but this does not
>> matter as I've tested it without a running Geoserver, too).
>> I'm using the OSGeo Live disk 3.0 because the README
>> (http://zoo-project.org/trac/attachment/wiki/ZooWorkshop2010/Content/README)
>> indicated that.
>> I guess it ain't important but I'm using it with VMWare Player 5 on Windows
>> 7 x64.
>> 
>> Help would be greatly appreciated since I'm needing this for a seminar with
>> my students in 2 weeks.
>> 
>> Cheers and thanks in advance for any help,
>> Christian
>> 
>> 
>> 
>> --
>> View this message in context: http://zoo-discuss.1049523.n5.nabble.com/FOSS4G-2010-ZOO-Workshop-Problem-tp5706683.html
>> Sent from the ZOO-Discuss mailing list archive at Nabble.com.
>> _______________________________________________
>> Zoo-discuss mailing list
>> Zoo-discuss at gisws.media.osaka-cu.ac.jp
>> http://gisws.media.osaka-cu.ac.jp/mailman/listinfo.cgi/zoo-discuss
> 
> 
> 
> Gérald Fenoy
> gerald.fenoy at geolabs.fr
> 
> <Buffer.zcfg><ogr_ws_service_provider.py>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131118/0e6fbb5b/attachment.pgp>


More information about the Zoo-discuss mailing list