Revision 15976
trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/layers/FLyrRasterSE.java | ||
---|---|---|
73 | 73 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
74 | 74 |
import com.iver.andami.PluginServices; |
75 | 75 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException; |
76 |
import com.iver.cit.gvsig.fmap.MapControl; |
|
77 | 76 |
import com.iver.cit.gvsig.fmap.ViewPort; |
78 | 77 |
import com.iver.cit.gvsig.fmap.core.FShape; |
79 | 78 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
... | ... | |
1442 | 1441 |
*/ |
1443 | 1442 |
public FLayer cloneLayer() throws Exception { |
1444 | 1443 |
FLyrRasterSE newLayer = FLyrRasterSE.createLayer(this.getName(), params, this.getProjection()); |
1444 |
for (int i = 0; i < dataset.getDatasetCount(); i++) { |
|
1445 |
String name = dataset.getDataset(i)[0].getFName(); |
|
1446 |
if(!(dataset instanceof CompositeDataset) && !name.equals(this.getName())) |
|
1447 |
newLayer.addFile(name); |
|
1448 |
} |
|
1445 | 1449 |
ArrayList filters = getRender().getFilterList().getStatusCloned(); |
1446 | 1450 |
RasterFilterList filterList = new RasterFilterList(); |
1447 | 1451 |
//TODO: Los parametros deberiamos clonarlos |
Also available in: Unified diff