//
// Is this node disposed? If so throw an exception
//
// /////////////////////////////////////////////////////////////////////
if (disposed) {
error = new CoverageProcessingException(
"Trying to process a disposed CoverageProcessingNode.");
return;
}
// /////////////////////////////////////////////////////////////////////
//
// We cannot execute the same node twice in this simpe design
//
// /////////////////////////////////////////////////////////////////////
if (!executed) {
try {
output=null;
// executes this node
final GridCoverage result = execute();
if (result == null)
error = new CoverageProcessingException("Something bad occurred while trying to execute this node.");
if (!(result instanceof GridCoverage2D))
error = new CoverageProcessingException("Something bad occurred while trying to execute this node.");
if(error==null)
output=(GridCoverage2D) result;
} catch (Throwable t) {
// something bad happened
output = null;