Class FeatureTileGenerator
- java.lang.Object
-
- mil.nga.geopackage.tiles.TileGenerator
-
- mil.nga.geopackage.tiles.features.FeatureTileGenerator
-
public class FeatureTileGenerator extends TileGenerator
Creates a set of tiles within a GeoPackage by generating tiles from features- Since:
- 1.1.2
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.tiles.TileGenerator
boundingBox, projection
-
-
Constructor Summary
Constructors Constructor Description FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, BoundingBox boundingBox, Projection projection)
ConstructorFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Projection projection)
Constructor, find the the bounding box from the feature tableFeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Projection projection)
Constructor, find the the bounding box from the feature table
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
createTile(int z, long x, long y)
Create the tileBoundingBox
getBoundingBox(int zoom)
Get the bounding box, possibly expanded for the zoom levelboolean
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 levelvoid
setLinkTables(boolean linkTables)
Set the link tables flag-
Methods inherited from class mil.nga.geopackage.tiles.TileGenerator
addZoomLevel, addZoomLevels, addZoomLevels, addZoomLevels, close, generateTiles, getBoundingBox, getCompressFormat, getCompressQuality, getGeoPackage, getMaxZoom, getMinZoom, getProgress, getScaling, getTableName, getTileCount, getZoomLevels, isSkipExisting, isXYZTiles, setCompressFormat, setCompressQuality, setProgress, setScaling, setSkipExisting, setXYZTiles
-
-
-
-
Constructor Detail
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevel
- zoom levelboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesminZoom
- min zoommaxZoom
- max zoomboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 1.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationboundingBox
- tiles bounding boxprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- 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(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int minZoom, int maxZoom, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- 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(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- 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(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, BoundingBox boundingBox, Projection projection)
Constructor- Parameters:
geoPackage
- 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(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int zoomLevel, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevel
- zoom levelprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int minZoom, int maxZoom, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesminZoom
- min zoommaxZoom
- max zoomprojection
- tiles projection- Since:
- 3.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, Collection<Integer> zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, int[] zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tileszoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int zoomLevel, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevel
- zoom levelprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(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:
geoPackage
- 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(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, Collection<Integer> zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
FeatureTileGenerator
public FeatureTileGenerator(GeoPackage geoPackage, String tableName, FeatureTiles featureTiles, GeoPackage featureGeoPackage, int[] zoomLevels, Projection projection)
Constructor, find the the bounding box from the feature table- Parameters:
geoPackage
- GeoPackagetableName
- table namefeatureTiles
- feature tilesfeatureGeoPackage
- feature GeoPackage if different from the destinationzoomLevels
- zoom levelsprojection
- tiles projection- Since:
- 6.2.0
-
-
Method Detail
-
getBoundingBox
public BoundingBox getBoundingBox(int zoom)
Get the bounding box, possibly expanded for the zoom level- Overrides:
getBoundingBox
in classTileGenerator
- Parameters:
zoom
- zoom level- Returns:
- original or expanded bounding box
-
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.1.6
-
setLinkTables
public void setLinkTables(boolean linkTables)
Set the link tables flag- Parameters:
linkTables
- link tables flag- Since:
- 1.1.6
-
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
-
-