Revision 20186
trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/layers/FLyrRasterSE.java | ||
---|---|---|
365 | 365 |
Boolean noDataEnabled = configuration.getValueBoolean("nodata_transparency_enabled", Boolean.FALSE); |
366 | 366 |
if (noDataEnabled.booleanValue() && getDataSource().isNoDataEnabled()) { |
367 | 367 |
noDataType = 1; |
368 |
Double noDataValue = Double.valueOf(getDataSource().getNoDataValue());
|
|
368 |
Double noDataValue = Double.valueOf(getNoDataValue()); |
|
369 | 369 |
getDataSource().getTransparencyFilesStatus().setNoData(noDataValue.doubleValue()); |
370 | 370 |
} else { |
371 | 371 |
noDataType = 0; |
... | ... | |
1697 | 1697 |
*/ |
1698 | 1698 |
public FLayer cloneLayer() throws Exception { |
1699 | 1699 |
FLyrRasterSE newLayer = FLyrRasterSE.createLayer(this.getName(), params, this.getProjection()); |
1700 |
newLayer.setNoDataValue(this.getNoDataValue());
|
|
1700 |
newLayer.setNoDataValue(getNoDataValue()); |
|
1701 | 1701 |
for (int i = 0; i < dataset.getDatasetCount(); i++) { |
1702 | 1702 |
String name = dataset.getDataset(i)[0].getFName(); |
1703 | 1703 |
if (!(dataset instanceof CompositeDataset) && !name.equals(this.getName())) |
Also available in: Unified diff