public abstract class TileGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected BoundingBox |
boundingBox
Tile bounding box
|
protected android.content.Context |
context
Context
|
| Constructor and Description |
|---|
TileGenerator(android.content.Context context,
GeoPackage geoPackage,
java.lang.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(android.graphics.Bitmap.Config config)
Set the Bitmap Compress Config
|
void |
setCompressFormat(android.graphics.Bitmap.CompressFormat compressFormat)
Set the compress format
|
void |
setCompressQuality(java.lang.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 android.content.Context context
protected BoundingBox boundingBox
public TileGenerator(android.content.Context context,
GeoPackage geoPackage,
java.lang.String tableName,
int minZoom,
int maxZoom)
context - geoPackage - tableName - minZoom - maxZoom - public void setTileBoundingBox(BoundingBox boundingBox)
boundingBox - public void setCompressFormat(android.graphics.Bitmap.CompressFormat compressFormat)
compressFormat - public void setCompressQuality(java.lang.Integer compressQuality)
compressQuality - public void setProgress(GeoPackageProgress progress)
progress - public void setBitmapCompressionConfig(android.graphics.Bitmap.Config config)
config - public void setGoogleTiles(boolean googleTiles)
googleTiles - public int getTileCount()
public int generateTiles()
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic void close()
protected abstract byte[] createTile(int z,
long x,
long y)
z - x - y -