public void setOutput( Object output ) {
if (output instanceof File) {
final File outFile = (File) output;
JGrassMapEnvironment tmp = new JGrassMapEnvironment(outFile);
rasterWriter = new GrassBinaryRasterWriteHandler(tmp.getMAPSET(), tmp.getMapName(), monitor);
try {
if (writeRegion == null) {
writeRegion = rasterWriter.getWriteRegion();
} else {
rasterWriter.setWriteRegion(writeRegion);