Revision 1805
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/provider/tile/TileDownloaderForFiles.java | ||
---|---|---|
26 | 26 |
import org.gvsig.fmap.dal.coverage.RasterLocator; |
27 | 27 |
import org.gvsig.fmap.dal.coverage.dataset.Buffer; |
28 | 28 |
import org.gvsig.fmap.dal.coverage.datastruct.BandList; |
29 |
import org.gvsig.fmap.dal.coverage.datastruct.DatasetBand; |
|
30 | 29 |
import org.gvsig.fmap.dal.coverage.datastruct.Extent; |
31 | 30 |
import org.gvsig.fmap.dal.coverage.exception.BandNotFoundInListException; |
32 | 31 |
import org.gvsig.fmap.dal.coverage.exception.NotSupportedExtensionException; |
... | ... | |
172 | 171 |
} |
173 | 172 |
} |
174 | 173 |
|
175 |
switch (provider.getBandCount()) { |
|
176 |
case 1: |
|
177 |
bandList.setDrawableBands(new int[] { 0 }); |
|
178 |
break; |
|
179 |
case 2: |
|
180 |
bandList.setDrawableBands(new int[] { 0, 1 }); |
|
181 |
break; |
|
182 |
default: |
|
183 |
bandList.setDrawableBands(new int[] { 0, 1, 2 }); |
|
184 |
break; |
|
174 |
int[] drawableBands = new int[bandList.getBandCount()]; |
|
175 |
for (int i = 0; i < bandList.getBandCount(); i++) { |
|
176 |
drawableBands[i] = i; |
|
185 | 177 |
} |
186 | 178 |
|
179 |
bandList.setDrawableBands(drawableBands); |
|
187 | 180 |
return bandList; |
188 | 181 |
} |
189 | 182 |
|
org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.multifile.io/src/main/java/org/gvsig/raster/tools/multifile/io/MultiFileProvider.java | ||
---|---|---|
713 | 713 |
} |
714 | 714 |
|
715 | 715 |
/** |
716 |
* Creates a <code>BandList</code> for each provider of this <code>MuktiFileProvider</code>.
|
|
716 |
* Creates a <code>BandList</code> for each provider of this <code>MultiFileProvider</code>.
|
|
717 | 717 |
* When a request is made, the <code>BandList</code> is global for all files. A specific |
718 | 718 |
* <code>BandList</code> has to be built for each provider. |
719 | 719 |
* @param globalBandList |
Also available in: Unified diff