public class TileDownloaderForFiles extends BaseTileDownloader
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
extension |
protected CacheStruct |
struct |
byteNoData, doubleNoData, floatNoData, intNoData, shortNoData, store, tilePxHeight, tilePxWidth
Constructor and Description |
---|
TileDownloaderForFiles(RasterDataStore store,
CacheStruct struct,
int tileWidth,
int tileHeight,
java.lang.String extension) |
Modifier and Type | Method and Description |
---|---|
protected Buffer |
buildTileBuffer(int nbands,
int w,
int h)
Builds a buffer using the specified number of bands and initialize it
|
Tile |
downloadTile(Tile tile)
Gets a tile from the data source.
|
boolean |
isInternalTile(int bufWidth,
int bufHeight) |
protected Buffer |
readSupersampledBuffer(Extent tileExtent,
int bufWidth,
int bufHeight,
boolean hasAlphaBand)
When the buffer of the request is greater than the original raster (> scale 1:1) then the request
has to be resampled.
|
clearMaskBuffer, getCrashImage, getDownloadingImage, getTileSize, readTileFromDisk, saveTile, setNoDataValue
protected CacheStruct struct
protected java.lang.String extension
public TileDownloaderForFiles(RasterDataStore store, CacheStruct struct, int tileWidth, int tileHeight, java.lang.String extension)
public Tile downloadTile(Tile tile) throws TileGettingException
Downloader
tile
- Tile informationTileGettingException
public boolean isInternalTile(int bufWidth, int bufHeight)
protected Buffer readSupersampledBuffer(Extent tileExtent, int bufWidth, int bufHeight, boolean hasAlphaBand) throws ProcessInterruptedException, QueryException, TileGettingException
tileExtent
- newBandList
- bufWidth
- bufHeight
- nBands
- ProcessInterruptedException
TileGettingException
QueryException
protected Buffer buildTileBuffer(int nbands, int w, int h)
nbands
-