Revision 1804 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

View differences:

TileDownloaderForFiles.java
186 186
		
187 187
		return bandList;
188 188
	}
189

  
190
	/**
191
	 * Builds a Bandlist object to load tiles
192
	 * @return
193
	 * @deprecated It is only for multifile providers
194
	 */
195
	@SuppressWarnings("unused")
196
	private BandList getBandList() {
197
		BandListImpl bandList = new BandListImpl();
198
		for(int i = 0; i < prov.getBandCount(); i++) {
199
			try {
200
				int dataType = prov.getDataType()[i];
201
				DatasetBand band = new DatasetBandImpl(prov.getURIByBand(i), i, dataType, prov.getBandCount());
202
				bandList.addBand(band, i);
203
			} catch(BandNotFoundInListException ex) {
204
				//No a?adimos la banda
205
			}
206
		}
207
		return bandList;
208
	}
209 189
	
210 190
	/**
211 191
	 * If the provider doesn't support resampling then this method reamples the result manually

Also available in: Unified diff