return "1.0.0";
}
public Map<String, Parameter<?>> getParameterInfo(Name name) {
checkName(name);
GeoAlgorithm algorithm = Sextante.getAlgorithmFromCommandLineName(name.getLocalPart());
ParametersSet paramSet = algorithm.getParameters();
Map<String, Parameter<?>> paramInfo = new LinkedHashMap<String, Parameter<?>>();
boolean hasRasterInput = false;
for (int i = 0; i < paramSet.getNumberOfParameters(); i++) {
es.unex.sextante.parameters.Parameter param = paramSet.getParameter(i);
String title = param.getParameterDescription();
String description = title;
try {
String td = param.getParameterAdditionalInfo().getTextDescription();
if(td != null) {
description += " - " + td;
}
// TODO: for numeric data we can specify default value and
// range, that should be useful
} catch(NullParameterAdditionalInfoException e) {
// fine
}
hasRasterInput = hasRasterInput || IRasterLayer.class.isAssignableFrom(param.getParameterClass());
paramInfo.put(param.getParameterName(), new Parameter(param.getParameterName(),
mapToGeoTools(param.getParameterClass()), Text.text(title),
Text.text(description), getAdditionalInfoMap(param)));
}
// check if there is any raster output
boolean hasRasterOutput = false;
OutputObjectsSet ooset = algorithm.getOutputObjects();
for (int i = 0; i < ooset.getOutputObjectsCount(); i++) {
Output output = ooset.getOutput(i);
if (output instanceof OutputRasterLayer) {
hasRasterOutput = true;
break;