public class FeatureTileGenerator extends TileGenerator
boundingBox, context, projection| Constructor and Description |
|---|
FeatureTileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
FeatureTiles featureTiles,
GeoPackage featureGeoPackage,
int minZoom,
int maxZoom,
BoundingBox boundingBox,
mil.nga.sf.proj.Projection projection)
Constructor
|
FeatureTileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
FeatureTiles featureTiles,
GeoPackage featureGeoPackage,
int minZoom,
int maxZoom,
mil.nga.sf.proj.Projection projection)
Constructor, find the the bounding box from the feature table
|
FeatureTileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
FeatureTiles featureTiles,
int minZoom,
int maxZoom,
BoundingBox boundingBox,
mil.nga.sf.proj.Projection projection)
Constructor
|
FeatureTileGenerator(Context context,
GeoPackage geoPackage,
String tableName,
FeatureTiles featureTiles,
int minZoom,
int maxZoom,
mil.nga.sf.proj.Projection projection)
Constructor, find the the bounding box from the feature table
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the GeoPackage
|
protected byte[] |
createTile(int z,
long x,
long y)
Create the tile
|
BoundingBox |
getBoundingBox(int zoom)
Get the bounding box, possibly expanded for the zoom level
|
boolean |
isLinkTables()
Is the feature table going to be linked with the tile table? Defaults to
true.
|
protected void |
preTileGeneration()
Called after set up and right before tile generation starts for the first
zoom level
|
void |
setLinkTables(boolean linkTables)
Set the link tables flag
|
generateTiles, getBoundingBox, getCompressFormat, getCompressQuality, getGeoPackage, getMaxZoom, getMinZoom, getProgress, getScaling, getTableName, getTileCount, isGoogleTiles, setBitmapCompressionConfig, setCompressFormat, setCompressQuality, setGoogleTiles, setProgress, setScalingpublic FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, BoundingBox boundingBox, mil.nga.sf.proj.Projection projection)
context - app contextgeoPackage - GeoPackagetableName - table namefeatureTiles - feature tilesminZoom - min zoommaxZoom - max zoomboundingBox - tiles bounding boxprojection - tiles projectionpublic FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, BoundingBox boundingBox, mil.nga.sf.proj.Projection projection)
context - app contextgeoPackage - GeoPackagetableName - table namefeatureTiles - feature tilesfeatureGeoPackage - feature GeoPackage if different from the destinationminZoom - min zoommaxZoom - max zoomboundingBox - tiles bounding boxprojection - tiles projectionpublic FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, mil.nga.sf.proj.Projection projection)
context - app contextgeoPackage - GeoPackagetableName - table namefeatureTiles - feature tilesminZoom - min zoommaxZoom - max zoomprojection - tiles projectionpublic FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, mil.nga.sf.proj.Projection projection)
context - app contextgeoPackage - GeoPackagetableName - table namefeatureTiles - feature tilesfeatureGeoPackage - feature GeoPackage if different from the destinationminZoom - min zoommaxZoom - max zoomprojection - tiles projectionpublic BoundingBox getBoundingBox(int zoom)
getBoundingBox in class TileGeneratorzoom - zoom levelpublic void close()
close in class TileGeneratorpublic boolean isLinkTables()
public void setLinkTables(boolean linkTables)
linkTables - link tables flagprotected void preTileGeneration()
preTileGeneration in class TileGeneratorprotected byte[] createTile(int z,
long x,
long y)
createTile in class TileGeneratorz - zoom levelx - x coordinatey - y coordinate