dear list, I'm back again with my WPS tests. I've tried with both examples you gave me in a precedent email (containsState and containsShape). Unfortunately, they don't work. I got an error :
arnaud@arnaud:~/Téléchargements$ curl -XPOST -H 'Content-type:text/xml' -d @containsStates.xml http://localhost:8686/geoserver/wps <?xml version="1.0" encoding="UTF-8"?> <ows:ExceptionReport version="1.1.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://localhost:8686/geoserver/schemas/ows/1.1.0/owsAll.xsd" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ows:Exception exceptionCode="NoApplicableCode"> <ows:ExceptionText>Process returned with an exception java.lang.IllegalArgumentException: This method does not support GeometryCollection arguments This method does not support GeometryCollection arguments</ows:ExceptionText> </ows:Exception> </ows:ExceptionReport> I also tried to do the same with the GUI WPS from geoServer and i get the same error. I defined : a - geometry POINT(1 1) b - subprocess <?xml version="1.0" encoding="UTF-8"?> <wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"> <ows:Identifier>gs:CollectGeometries</ows:Identifier> <wps:DataInputs> <wps:Input> <ows:Identifier>features</ows:Identifier> <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.0" xlink:href="http://geoserver/wfs" method="POST"> <wps:Body> <wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"> <wfs:Query typeName="topp:states"/> </wfs:GetFeature> </wps:Body> </wps:Reference> </wps:Input> </wps:DataInputs> <wps:ResponseForm> <wps:RawDataOutput mimeType="text/xml; subtype=gml/3.1.1"> <ows:Identifier>result</ows:Identifier> </wps:RawDataOutput> </wps:ResponseForm> </wps:Execute> do you have any idea what I'm doing wrong ? Regards and thanks for your help Arnaud On Tue, Jul 26, 2011 at 12:07 PM, Andrea Aime <[email protected]> wrote: > On Tue, Jul 26, 2011 at 11:20 AM, Arnaud Vandecasteele > <[email protected]> wrote: >> Thank you Justin for the examples. I understand better how GeoServer >> works with WPS. > > This is Andrea ;-) > >> But I've got (again) a question. How can create/publish the xml file >> as a WPS service and how the user can use the WPS capabilities of >> GeoServer ? I think it's obvious but I didn't understand how to do >> that. > > The xml file is a Execute request, not a process definition, does not > make sense to deploy it. > >> I tried a curl request but I only got an error answer : >> curl -X POST -d containsStates.xml >> http://myGeoServer:8080/geoserver/ows?service=WPS&version=1.0.0&request=Execute > > Ah, there are errors in the way you setup the request. Do it like this: > > curl -XPOST -H 'Content-type: text/xml' -d @/tmp/containsStates.xml > http://localhost:8080/geoserver/wps > > In my case I get back "true" > >> Also, do you know where I could find the python extension for geoserver >> 2.1.1 ? >> I found this URL [1] but iot's for the GeoServer 2.2 and there is no >> python extension in the 2.1 folder. > > I'll leave Justin to answer this one. > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > -- -------------------------------------------------------------------- Van De Casteele Arnaud Mines Paris Tech - CRC Sophia-Antipolis 0698 24 25 29 SIG - WebMapping - SOLAP - BI - GeoCollaboration Web Site http://geotribu.net/ http://www.sismaris.org/ ------------------------------------------------------------------------------ uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
