I know jts:buffer exists. Just to make a simple example.

The reason why SQL is another supplementary approach is because many GIS
admins don't code at all but master SQL instead, hence GIS admins would make
a WPS process with configuration instead of code. Furthermore, I think
(maybe I'm wrong) his approach makes it easy to make content specific WPS
processes with local data. Like this simple example:

SELECT sum (column1) as *OUTPUT1*, sum(coluimn2) as *OUTPUT2*, avg(column3)
as *OUTPUT3*, sum(column4) as *OUTPUT4*, sum(column5) as *OUTPUT5* FROM
schema.table. g
                            WHERE st_intersects(g.the_geom,
ST_GeometryFromText('*[INPUT]*',25832))

That said, I'm thrilled about the WPS work in Geoserver already, and with
the python extension it is even more flexible!


/Martin
Keep up the fantastic work!


2011/7/31 Andrea Aime <[email protected]>

> On Sun, Jul 31, 2011 at 9:45 PM, Martin Jensen
> <[email protected]> wrote:
> > Thanks for the answer!
> > Regarding Postgis backend I was thinking (hoping)  about a really simple
> > model:
> > Just write the sql statement with parameters:
> > SELECT St_buffer([WPS_INPUT_GEOM], 100) as WPS_OUTPUT_GEOM.
>
> This process already exists, look for JTS:Buffer, it does exactly that
> (in 3 lines
> of code or so).
>
> For more complex processes that deal with feature collections what I've
> said
> before is still valid
>
> 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
>
> -------------------------------------------------------
>



-- 
Med venlig hilsen

Martin Bjærge Jensen
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to