Here at OpenGeo we're working on a guide to developing GeoServer WPS
extensions that will tell you all you need to know (which actually isn't
that much).  But it's not quite ready yet - watch our blog for details.

In the meantime, here's a quick summary of the things you need to do (the
instructions are for GeoServer 2.1.x; GeoServer 2.2 uses slightly different
packages in the API):

- Create a Java project and reference the GeoServer wps-core JAR.
- Create a process class which extends org.geoserver.wps.gs.GeoServerProcess
- add an execute method which takes the process arguments
- use the @DescribeProcess, @DescribeResult and @DescribeParameter
annotations to provide metadata for the process
- create a Spring applicationContext.xml file to inform GeoServer about the
existence of the process
- bundle the class file(s) and the XML file in a JAR file
- deploy the process JAR to geoserver/WEB-INF/lib
- restart GeoServer

Attached is a sample process Java class and applicationContext.xml

HTH.

On Mon, May 28, 2012 at 5:27 AM, nira <minerva0...@gmail.com> wrote:

> Hello everybody,
>
> I'm trying to implement my own WPS java code to Geoserver. I'm new and I
> don't know exactly 'where' I have to insert it. I've read that some people
> told that I have to create a jar and put it on the WEBInf/lib folder but it
> doesn't work. I've checked few messages in the forum about that topic and I
> think that I will have to change all the code.
>
> On the other hand, I want to ask also which server do you thinks it's
> better
> (North25, Deegree...) and more easy to implement it.
>
> Thank you so much in advance,
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/WPS-java-code-implementation-tp4977399.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Attachment: PolygonizeProcess.java
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd";>
<beans>
    <bean id="polygonize" class="org.geotools.process.geometry.gs.PolygonizeProcess"/>
    <bean id="splitPolygon" class="org.geotools.process.geometry.gs.SplitPolygonProcess"/>
</beans>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to