@Override public Geometry getUnion( Geometry geometry ) { return getReferencedObject().getUnion( geometry ); }
@Override public void process( ProcessletInputs in, ProcessletOutputs out, ProcessletExecutionInfo info ) throws ProcessletException { ComplexInput gmlInput1 = (ComplexInput) in.getParameter( "GMLInput1" ); ComplexInput gmlInput2 = (ComplexInput) in.getParameter( "GMLInput2" ); Geometry geometry1 = readGeometry( gmlInput1 ); Geometry geometry2 = readGeometry( gmlInput2 ); Geometry union = geometry1.getUnion( geometry2 ); ComplexOutput unionOutput = (ComplexOutput) out.getParameter( "Union" ); writeGeometry( unionOutput, union ); }