Class FeatureTileGenerator
java.lang.Object
mil.nga.geopackage.tiles.TileGenerator
mil.nga.geopackage.tiles.features.FeatureTileGenerator
Creates a set of tiles within a GeoPackage by generating tiles from features
-
Field Summary
Fields inherited from class mil.nga.geopackage.tiles.TileGenerator
boundingBox, context, projection
-
Constructor Summary
ConstructorDescriptionFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, BoundingBox boundingBox, Projection projection) ConstructorFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Projection projection) Constructor, find the the bounding box from the feature tableFeatureTileGenerator
(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Projection projection) Constructor, find the the bounding box from the feature table -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the GeoPackageprotected byte[]
createTile
(int z, long x, long y) Create the tilegetBoundingBox
(int zoom) Get the bounding box, possibly expanded for the zoom levelboolean
Is the feature table going to be linked with the tile table? Defaults to true.protected void
Called after set up and right before tile generation starts for the first zoom levelvoid
setLinkTables
(boolean linkTables) Set the link tables flagMethods inherited from class mil.nga.geopackage.tiles.TileGenerator
addZoomLevel, addZoomLevels, addZoomLevels, addZoomLevels, generateTiles, getBoundingBox, getCompressFormat, getCompressQuality, getGeoPackage, getMaxZoom, getMinZoom, getProgress, getScaling, getTableName, getTileCount, getZoomLevels, isSkipExisting, isXYZTiles, setBitmapCompressionConfig, setCompressFormat, setCompressQuality, setProgress, setScaling, setSkipExisting, setXYZTiles
-
Constructor Details
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevel
- zoom levelboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesminZoom
- min zoommaxZoom
- max zoomboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 1.3.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevel
- zoom levelboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationminZoom
- min zoommaxZoom
- max zoomboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 3.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, BoundingBox boundingBox, Projection projection) Constructor- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevel
- zoom levelprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesminZoom
- min zoommaxZoom
- max zoomprojection
- tiles projection- Since:
- 3.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevel
- zoom levelprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationminZoom
- min zoommaxZoom
- max zoomprojection
- tiles projection- Since:
- 3.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(Context context, GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, Projection projection) Constructor, find the the bounding box from the feature table- Parameters:
context
- app contextgeoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
-
Method Details
-
getBoundingBox
Get the bounding box, possibly expanded for the zoom level- Overrides:
getBoundingBox
in classTileGenerator
- Parameters:
zoom
- zoom level- Returns:
- original or expanded bounding box
-
close
public void close()Close the GeoPackage- Overrides:
close
in classTileGenerator
-
isLinkTables
public boolean isLinkTables()Is the feature table going to be linked with the tile table? Defaults to true.- Returns:
- true if tables will be linked upon generation
- Since:
- 1.2.5
-
setLinkTables
public void setLinkTables(boolean linkTables) Set the link tables flag- Parameters:
linkTables
- link tables flag- Since:
- 1.2.5
-
preTileGeneration
protected void preTileGeneration()Called after set up and right before tile generation starts for the first zoom level- Specified by:
preTileGeneration
in classTileGenerator
-
createTile
protected byte[] createTile(int z, long x, long y) Create the tile- Specified by:
createTile
in classTileGenerator
- Parameters:
z
- zoom levelx
- x coordinatey
- y coordinate- Returns:
- tile bytes
-