if(SEXTANTE_GRID_CELL_SIZE.equals(sKey) || SEXTANTE_GRID_ENVELOPE.equals(sKey)) {
// these two parameters we made up to expose the GridExtent, we'll deal with them later
continue;
}
Object paramValue = input.get(sKey);
Parameter param = paramSet.getParameter(sKey);
if(paramValue instanceof FeatureCollection) {
param.setParameterValue(GTVectorLayer.createLayer(DataUtilities.source((FeatureCollection) paramValue), Query.ALL));
} else if(paramValue instanceof GridCoverage2D) {
GTRasterLayer layer = new GTRasterLayer();
gridExtendRequired = true;
layer.create(paramValue);
param.setParameterValue(layer);
} else {
param.setParameterValue(paramValue);
}
}
// check the outputs as well for raster data
OutputObjectsSet outputs = m_Algorithm.getOutputObjects();