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.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to