Thank you Justin for the examples. I understand better how GeoServer
works with WPS.
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.
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

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.

Regards

Arnaud

[1] 
http://gridlock.opengeo.org/geoserver/trunk/community-latest/geoserver-2.2-SNAPSHOT-python-plugin.zip


On Tue, Jul 26, 2011 at 10:25 AM, Andrea Aime
<[email protected]> wrote:
> On Tue, Jul 26, 2011 at 10:04 AM, Arnaud Vandecasteele
> <[email protected]> wrote:
>> Thank you Andrea and Justin for your anwsers.
>>
>> More precisely my need is simply to check if a point is inside a shape
>> of polygones. This polygones are stored in a shapefile.
>
> Ah, there is a variety of ways to deal with this already, no need to make
> a new process, you just need to chain existing ones.
> If the polygons are few and you can load all of them in memory safely
> you can use the jts:intersects process with one argument being the
> point, and the other the result of the "collectGeometries" process against
> the shapefile.
> The attached "containsStates.xml" provides an example, checking if
> a point is in any of the topp:states polygons.
>
> If they are many you should probably first call the gs:filter process with
> a smal bbox around the point to just get the candidates, and then
> call collect and intersect.
> The containsShape.xml file, attached, shows a chain that does the
> above against a zipped shapefile I have on disk.
>
>
>> When I will have more time, I will try to use again the WPS extension.
>> But I have a last question. If I understand well the documentation, to
>> execute a WPS process I have to send to geoserver a XML file. This
>> file contains all the elements (input and output) needed by GeoServer.
>> But can we use it as well with a simple URL ?
>
> It can, but you'll have to read the WPS specification to build it, the
> demo request builder for the moment just builds xml requests.
> Chaining 3 processes in a GET request is also going to push you beyond
> the maximum length of a GET request quickly.
>
> 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/

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to