<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Alastair,<div class=""><br class=""></div><div class="">I checked the describeProcess:</div><div class=""><a href="http://localhost:8080/geoserver/wps?service=wps&version=1.0.0&request=DescribeProcess&identifier=vec:Simplify" class="">http://localhost:8080/geoserver/wps?service=wps&version=1.0.0&request=DescribeProcess&identifier=vec:Simplify</a> </div><div class=""><br class=""></div><div class="">The process expects a ComplexInput (a url to a resource) as “features” input.</div><div class=""><br class=""></div><div class="">You can also try wps “get” requests without owslib to test the process:</div><div class=""><a href="http://geoprocessing.info/wpsdoc/1x0Execute" class="">http://geoprocessing.info/wpsdoc/1x0Execute</a> </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Here an example with a ComplexInput:</div><div class=""><a href="https://bovec.dkrz.de/ows/proxy/emu?service=WPS&version=1.0.0&request=Execute&identifier=wordcounter&DataInputs=text=@xlink:href=http://pywps.org" class="">https://bovec.dkrz.de/ows/proxy/emu?service=WPS&version=1.0.0&request=Execute&identifier=wordcounter&DataInputs=text=@xlink:href=http://pywps.org</a> </div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Carsten<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 28 Aug 2019, at 12:50 pm, Alastair Graham <<a href="mailto:a.graham@geoger.co.uk" class="">a.graham@geoger.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello<br class=""></div><div class="">I am trying to get a simple WPS call to work using the standard tools in Geoserver (<font face="monospace" class="">vec:Simplify</font> using <font face="monospace" class="">topp:states</font> data) and owslib. I keep coming up with the following error:</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">owslib.wps.WPSException : {'code': 'NoApplicableCode', 'locator': None, 'text': 'Failed to retrieve value for input features\norg.geoserver.wps.ppio.WFSPPIO$WFS10 cannot be cast to org.geoserver.wps.ppio.LiteralPPIO'}</font><br class=""></div><div class=""><br class=""></div><div class="">I think I know what it means (a clash of formats?) but don't know how to resolve it. All the WMS, WFS and WPS GetCapabilities and DescribeProcess work fine, it's just the Execute component that is failing. </div><div class=""><br class=""></div><div class="">Geoserver: I am using the latest container from meteofi (<a href="https://hub.docker.com/r/meteofi/geoserver" class="">https://hub.docker.com/r/meteofi/geoserver</a>)</div><div class="">Data: I am trying to get this running on the data supplied with Geoserver (topp:states) before I try my own data.</div><div class=""><br class=""></div><div class="">Code: </div><div class=""><font face="monospace" class="">from owslib.wps import WebProcessingService, monitorExecution, printInputOutput<br class=""><br class=""></font></div><div class=""><font face="monospace" class="">serverURL = '<a href="http://localhost:8080/geoserver/wps" class="">http://localhost:8080/geoserver/wps</a>'<br class=""><br class="">wps = WebProcessingService(serverURL, verbose=False, skip_caps=True)<br class="">processid = 'vec:Simplify'<br class="">inputs = [('features','topp:states'),<br class="">            ('distance', '10'),<br class="">            ('preserveTopology', 'True')]<br class=""><br class=""></font></div><div class=""><font face="monospace" class="">execution = wps.execute(processid, inputs)<br class="">if execution.isSucceded:<br class="">    output, = execution.processOutputs<br class="">    print(output.data)</font><br class=""></div><div class=""><br class=""></div><div class="">I can get this to work using the Geoserver WPS request builder, and using an XML file through Curl, so I guess the issue is with my Python. </div><div class="">Any pointers on what I need to do to handle this issue would be really appreciated</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">Alastair</div><div class=""><br class=""></div><br clear="all" class=""><div class=""><div dir="ltr" class="m_-1347887765584002980gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><font color="#666666" class=""><font face="arial narrow, sans-serif" size="2" class="">| Alastair Graham </font></font></div><div dir="ltr" class=""><font color="#666666" class=""><font face="arial narrow, sans-serif" size="2" class=""><br class=""></font></font></div><div dir="ltr" class=""><font face="arial narrow, sans-serif" class=""><font color="#666666" class=""><font size="2" class="">This email may contain confidential material and is for use only by the intended recipient. </font><br class=""><font size="2" class="">If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.</font></font></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">OWSLib-users mailing list<br class=""><a href="mailto:OWSLib-users@lists.osgeo.org" class="">OWSLib-users@lists.osgeo.org</a><br class="">https://lists.osgeo.org/mailman/listinfo/owslib-users</div></blockquote></div><br class=""></div></body></html>