public class TileCapture extends DatasetTileReader
ImageryCaptureTask
for asynchronous capture of map imageryModifier and Type | Class and Description |
---|---|
static interface |
TileCapture.Callback
Callback fired when capturing tiles
|
static class |
TileCapture.DefaultProjection |
_levelOffset, _maxLevels, _paint, _pixelBuf, _tileHeight, _tileWidth
Constructor and Description |
---|
TileCapture(BitmapReader reader,
int srid,
DatasetProjection2 imprecise,
double levelTransitionAdj,
double gsd,
int tileWidth,
int tileHeight,
int maxLevels,
int levelOffset) |
TileCapture(BitmapReader reader,
TileCapture other) |
TileCapture(DatasetTileReader r) |
Modifier and Type | Method and Description |
---|---|
int |
calculateLevel(GeoPoint[] quad,
int minDim,
int captureRes)
Calculate level given a quad and image size
|
void |
capture(TileCaptureParams params,
TileCapture.Callback cb)
Begin capturing map tiles
|
boolean |
compatible(TileCapture tc)
Check if a tile capture is compatible with another, in such a way that
tiles can be read from either properly
|
static TileCapture |
create(GeoBounds bounds)
Create a tile capture instance given a set of geobounds
|
static TileCapture |
create(ImageDatasetDescriptor info)
Create a tile reader given an image dataset descriptor
|
static TileCapture |
create(MosaicDatasetDescriptor info,
GeoBounds bounds)
Create a tile capture instance given a mosaic dataset descriptor
|
static TileCapture |
createBasemapReader(MapView mv) |
static DatasetTileReader |
createTileReader(ImageDatasetDescriptor info) |
void |
dispose() |
TileCaptureBounds |
getBounds(TileCaptureParams params)
Generate capture boundaries and matrices for a set of imagery
|
int |
getLevel(TileCaptureParams params) |
DatasetProjection2 |
getProjection() |
BitmapReader |
getReader() |
void |
getSourcePoint(int level,
int column,
int row,
PointD dst)
Get source point
|
TileBitmap |
getTile(int level,
int column,
int row)
Get tile bitmap
|
void |
getTilePoint(int level,
PointD src,
android.graphics.Point dst)
Get tile point
|
boolean |
tooSmall(ImageDatasetDescriptor info,
GeoBounds b) |
getLevelOffset, getMaxLevels, getTileHeight, getTileImpl, getTileWidth
public TileCapture(DatasetTileReader r)
public TileCapture(BitmapReader reader, int srid, DatasetProjection2 imprecise, double levelTransitionAdj, double gsd, int tileWidth, int tileHeight, int maxLevels, int levelOffset)
public TileCapture(BitmapReader reader, TileCapture other)
public static TileCapture create(ImageDatasetDescriptor info)
info
- Image dataset descriptorpublic static TileCapture create(MosaicDatasetDescriptor info, GeoBounds bounds)
info
- Mosaic dataset descriptorbounds
- Geo bounds of the query areapublic static TileCapture create(GeoBounds bounds)
bounds
- Bounds to querypublic static TileCapture createBasemapReader(MapView mv)
public void dispose()
public BitmapReader getReader()
public DatasetProjection2 getProjection()
public boolean compatible(TileCapture tc)
tc
- Tile capturepublic boolean tooSmall(ImageDatasetDescriptor info, GeoBounds b)
public void capture(TileCaptureParams params, TileCapture.Callback cb)
params
- Tile capture parameterscb
- Callbackpublic TileBitmap getTile(int level, int column, int row)
BitmapReader
getTile
in interface BitmapReader
getTile
in class DatasetTileReader
level
- Resolution levelcolumn
- Columnrow
- Rowpublic int calculateLevel(GeoPoint[] quad, int minDim, int captureRes)
quad
- Geopoint quad (clockwise starting from upper-left point)minDim
- Minimum image sizecaptureRes
- Capture resolutionpublic int getLevel(TileCaptureParams params)
public void getTilePoint(int level, PointD src, android.graphics.Point dst)
BitmapReader
level
- Resolution levelsrc
- Source pointdst
- Destination pointpublic void getSourcePoint(int level, int column, int row, PointD dst)
BitmapReader
level
- Resolution levelcolumn
- Columnrow
- Rowdst
- Destination pointpublic TileCaptureBounds getBounds(TileCaptureParams params)
params
- Capture parameterspublic static DatasetTileReader createTileReader(ImageDatasetDescriptor info)