From: vermesser123 <max...@ya...> - 2013-04-30 10:36:15
|
Hello everybody, I want to use a custom input-type in a wps, so that the client can send a request like this: ... <wps:Data> <wps:ComplexData> <customFormatPPIO> <feature_id>12345</feature_id> <feature_name>house</feature_name> </customFormatPPIO> </wps:ComplexData> </wps:Data> ... I declared in the org.geoserver.wps.ppio package a class customFormatPPIO with the members feature_id and feature_name. public class customFormatPPIO extends ComplexPPIO { private String id; private String name; public customFormatPPIO() { ... } public void encode(...){...} public Object decode(...){...} Also, I registered the class in the ProcessParameterIO: defauls.add(new customFormatPPIO(...)); I thought, that a incoming request is routed to the decode-function in the customFormatPPIO.class, however, there is a exception in AnnotationDriverProcessFactory.class; org.geotools.process.ProcessException: Could not convert {id=12345, name=house} to target type org.geoserver.wps.ppio.customFormatPPIO at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.buildProcessArguments(AnnotationDrivenProcessFactory.java:627) at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:501) Any idea, what to do or how to implement custom input types in a wps? Thanks Max Meier -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Custom-Inputtype-for-WPS-tp5050404.html Sent from the GeoServer - User mailing list archive at Nabble.com. |