Revision 20998 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/MultiRasterDataset.java
MultiRasterDataset.java | ||
---|---|---|
1130 | 1130 |
} |
1131 | 1131 |
|
1132 | 1132 |
/** |
1133 |
* Obtiene el objeto que contiene que contiene la interpretaci?n de |
|
1134 |
* color por banda para el dataset seleccionado |
|
1135 |
* @param dataset Dataset del que se necesesita la informaci?n de color dentro del RasterMultiDataset |
|
1133 |
* Obtiene el objeto que contiene la interpretaci?n de color del MultiRasterDataset |
|
1136 | 1134 |
* @return DatasetColorInterpretation |
1137 | 1135 |
*/ |
1138 |
public DatasetColorInterpretation getColorInterpretation(int dataset){ |
|
1139 |
return ((RasterDataset)files.get(dataset)).getColorInterpretation(); |
|
1136 |
public DatasetColorInterpretation getColorInterpretation(){ |
|
1137 |
DatasetColorInterpretation ci = new DatasetColorInterpretation(); |
|
1138 |
for (int i = 0; i < files.size(); i++) { |
|
1139 |
ci.addColorInterpretation(((RasterDataset) files.get(i)).getColorInterpretation()); |
|
1140 |
} |
|
1141 |
return ci; |
|
1140 | 1142 |
} |
1141 | 1143 |
|
1142 | 1144 |
/** |
Also available in: Unified diff