public class MosaicTileReader extends DatasetTileReader
MosaicDatabase2
Consists of multiple GdalTileReader
per each dataset in the mosaic_levelOffset, _maxLevels, _paint, _pixelBuf, _tileHeight, _tileWidth
Constructor and Description |
---|
MosaicTileReader(MosaicDatasetDescriptor info,
GeoBounds bounds) |
MosaicTileReader(MosaicDatasetDescriptor info,
GeoPoint[] corners)
Create a new tile reader for a imagery source that is GDAL-compatible
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
double |
getMaxResolution()
Get the maximum resolution for the datasets in use by this reader
|
void |
getSourcePoint(int level,
int col,
int row,
PointD dst)
Get source point
|
TileBitmap |
getTile(int level,
int col,
int row)
Get tile bitmap
|
void |
getTilePoint(int level,
PointD src,
android.graphics.Point dst)
Get tile point
|
getLevelOffset, getMaxLevels, getTileHeight, getTileImpl, getTileWidth
public MosaicTileReader(MosaicDatasetDescriptor info, GeoPoint[] corners) throws java.lang.IllegalArgumentException
info
- Dataset descriptorcorners
- Corner points in clockwise order [UL, UR, BR, BL]java.lang.IllegalArgumentException
public MosaicTileReader(MosaicDatasetDescriptor info, GeoBounds bounds)
public void dispose()
public double getMaxResolution()
public void getTilePoint(int level, PointD src, android.graphics.Point dst)
BitmapReader
level
- Resolution levelsrc
- Source pointdst
- Destination pointpublic void getSourcePoint(int level, int col, int row, PointD dst)
BitmapReader
level
- Resolution levelcol
- Columnrow
- Rowdst
- Destination pointpublic TileBitmap getTile(int level, int col, int row)
BitmapReader
getTile
in interface BitmapReader
getTile
in class DatasetTileReader
level
- Resolution levelcol
- Columnrow
- Row