Revision 19930 trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/util/process/ClippingProcess.java
ClippingProcess.java | ||
---|---|---|
50 | 50 |
import org.gvsig.raster.util.RasterNotLoadException; |
51 | 51 |
import org.gvsig.raster.util.RasterToolsUtil; |
52 | 52 |
import org.gvsig.raster.util.RasterUtilities; |
53 |
|
|
54 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
53 | 55 |
/** |
54 | 56 |
* <code>ClippingProcess</code> es un proceso que usa un <code>Thread</code> |
55 | 57 |
* para aplicar un recorte a una capa y guardarlo en disco. Muestra una barra |
... | ... | |
253 | 255 |
if (RasterToolsUtil.messageBoxYesOrNot("cargar_toc", this)) { |
254 | 256 |
try { |
255 | 257 |
for (int i = 0; i < drawableBands.length; i++) { |
256 |
RasterToolsUtil.loadLayer(viewName, fileNames[i], null); |
|
258 |
FLayer lyr = RasterToolsUtil.loadLayer(viewName, fileNames[i], null); |
|
259 |
if(lyr != null && lyr instanceof FLyrRasterSE) |
|
260 |
((FLyrRasterSE)lyr).setRois(rasterSE.getRois()); |
|
257 | 261 |
} |
258 | 262 |
} catch (RasterNotLoadException e) { |
259 | 263 |
RasterToolsUtil.messageBoxError("error_load_layer", this, e); |
... | ... | |
313 | 317 |
|
314 | 318 |
if (RasterToolsUtil.messageBoxYesOrNot("cargar_toc", this)) { |
315 | 319 |
try { |
316 |
RasterToolsUtil.loadLayer(viewName, fileName, null); |
|
320 |
FLayer lyr = RasterToolsUtil.loadLayer(viewName, fileName, null); |
|
321 |
if(lyr != null && lyr instanceof FLyrRasterSE) |
|
322 |
((FLyrRasterSE)lyr).setRois(rasterSE.getRois()); |
|
317 | 323 |
} catch (RasterNotLoadException e) { |
318 | 324 |
RasterToolsUtil.messageBoxError("error_load_layer", this, e); |
319 | 325 |
} |
Also available in: Unified diff