On Sat, Jan 22, 2011 at 1:13 PM, Andrea Aime <[email protected]> wrote: > On Fri, Jan 21, 2011 at 8:49 PM, Ian Turton <[email protected]> wrote: >> I'm wondering how I go about adding a GeoTools process to GeoServer >> with WPS? I found >> http://www.mail-archive.com/[email protected]/msg02079.html >> which seems to say I need to edit core WPS classes, is that correct? > > Not really, not anymore in any case. There are various ways to add a process, > but let me show you the quickest one, which we'll add the process among > the "gs" ones. > > 1) Code your process using the annotations and making it implement > the marker interface GeoserverProcess. For example: > > http://svn.codehaus.org/geoserver/trunk/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/CollectGeometries.java > 2) Declare the process in the Spring context, for example: > > http://svn.codehaus.org/geoserver/trunk/src/extension/wps/wps-core/src/main/java/applicationContext.xml > see in particular: > <bean id="collectGeometriesProcess" > class="org.geoserver.wps.gs.CollectGeometries"/> > > You can do that in your own module, provided you declare a dependency > to wps-core.
Thanks - I'll give that a try. > > Ah, the annotations will eventually be moved back to GeoTools and thus change > package. Also the existing processes might change name, parameters and the > like. > > What we have today is mostly the result of my spare time coding (though lately > we started adding processes backed by real funding, yeah!), so interfaces and > class locations are still not definitive... > I think WPS will grow strongly over then next year, but the road may > be a little bumpy I'll try and document my experiences as I go, I think that WPS is finally going to let me solve a plan I started 11 years ago. Cheers Ian -- Ian Turton ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
