public class GdalTileReader extends DatasetTileReader
Modifier and Type | Field and Description |
---|---|
protected Dataset |
_dataset |
protected int |
_height |
protected PointD |
_lr |
protected PointD[] |
_sizes |
protected PointD |
_ul |
protected int |
_width |
_levelOffset, _maxLevels, _pixelBuf, _tileHeight, _tileWidth
Constructor and Description |
---|
GdalTileReader(ImageDatasetDescriptor info,
Dataset dataset) |
GdalTileReader(int srid,
GeoPoint[] corners,
Dataset dataset)
Create a new tile reader for a imagery source that is GDAL-compatible
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
getSourcePoint(int level,
int col,
int row,
PointD dst)
Get source point
|
TileBitmap |
getTile(int level,
int c,
int r)
Get tile bitmap
|
void |
getTilePoint(int level,
PointD src,
android.graphics.Point dst)
Get tile point
|
getLevelOffset, getMaxLevels, getTileHeight, getTileImpl, getTileWidth
protected final Dataset _dataset
protected final int _width
protected final int _height
protected final PointD _ul
protected final PointD _lr
protected final PointD[] _sizes
public GdalTileReader(int srid, GeoPoint[] corners, Dataset dataset)
srid
- Spatial reference IDcorners
- Corner points in clockwise order [UL, UR, BR, BL]dataset
- GDAL datasetpublic GdalTileReader(ImageDatasetDescriptor info, Dataset dataset)
public void dispose()
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 c, int r)
BitmapReader
getTile
in interface BitmapReader
getTile
in class DatasetTileReader
level
- Resolution levelc
- Columnr
- Row