Revision 1058 org.gvsig.geoprocess/branches/refactor-2018/org.gvsig.geoprocess/org.gvsig.geoprocess.lib/org.gvsig.geoprocess.lib.sextante/src/main/java/org/gvsig/geoprocess/lib/sextante/core/DefaultOutputFactory.java
DefaultOutputFactory.java | ||
---|---|---|
45 | 45 |
import es.unex.sextante.core.AnalysisExtent; |
46 | 46 |
import es.unex.sextante.core.ITaskMonitor; |
47 | 47 |
import es.unex.sextante.core.OutputFactory; |
48 |
import es.unex.sextante.core.Sextante; |
|
48 | 49 |
import es.unex.sextante.dataObjects.IRasterLayer; |
49 | 50 |
import es.unex.sextante.dataObjects.ITable; |
50 | 51 |
import es.unex.sextante.dataObjects.IVectorLayer; |
... | ... | |
53 | 54 |
import es.unex.sextante.outputs.FileOutputChannel; |
54 | 55 |
import es.unex.sextante.outputs.IOutputChannel; |
55 | 56 |
import es.unex.sextante.outputs.NullOutputChannel; |
56 |
import java.util.logging.Level; |
|
57 |
import java.util.logging.Logger; |
|
58 | 57 |
import org.gvsig.raster.lib.buffer.api.exceptions.BufferException; |
59 | 58 |
|
60 | 59 |
/** |
... | ... | |
151 | 150 |
final BufferWriteOnlyIRasterLayer layer = new BufferWriteOnlyIRasterLayer(); |
152 | 151 |
try { |
153 | 152 |
layer.create(sName, sFilename, extent, iDataType, iBands, crs); |
154 |
} catch (BufferException ex) {
|
|
155 |
Logger.getLogger(DefaultOutputFactory.class.getName()).log(Level.SEVERE, null, ex);
|
|
153 |
} catch (BufferException e) { |
|
154 |
Sextante.addErrorToLog(e);
|
|
156 | 155 |
} |
157 | 156 |
return layer; |
158 | 157 |
} else { |
Also available in: Unified diff