public abstract class TileGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BoundingBox |
boundingBox
Tile bounding box
|
protected Context |
context
Context
|
| Constructor and Description |
|---|
TileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
int minZoom,
int maxZoom)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the GeoPackage
|
protected abstract byte[] |
createTile(int z,
long x,
long y)
Create the tile
|
int |
generateTiles()
Generate the tiles
|
int |
getTileCount()
Get the tile count of tiles to be generated
|
void |
setBitmapCompressionConfig(Bitmap.Config config)
Set the Bitmap Compress Config
|
void |
setCompressFormat(Bitmap.CompressFormat compressFormat)
Set the compress format
|
void |
setCompressQuality(Integer compressQuality)
Set the compress quality.
|
void |
setGoogleTiles(boolean googleTiles)
Set the Google Tiles flag to true to generate Google tile format tiles.
|
void |
setProgress(GeoPackageProgress progress)
Set the progress tracker
|
void |
setTileBoundingBox(BoundingBox boundingBox)
Set the tile bounding box
|
protected final Context context
protected BoundingBox boundingBox
public TileGenerator(Context context, GeoPackage geoPackage, String tableName, int minZoom, int maxZoom)
context - geoPackage - tableName - minZoom - maxZoom - public void setTileBoundingBox(BoundingBox boundingBox)
boundingBox - public void setCompressFormat(Bitmap.CompressFormat compressFormat)
compressFormat - public void setCompressQuality(Integer compressQuality)
compressQuality - public void setProgress(GeoPackageProgress progress)
progress - public void setBitmapCompressionConfig(Bitmap.Config config)
config - public void setGoogleTiles(boolean googleTiles)
googleTiles - public int getTileCount()
public int generateTiles()
throws SQLException,
IOException
SQLExceptionIOExceptionpublic void close()
protected abstract byte[] createTile(int z,
long x,
long y)
z - x - y -