Package mil.nga.geopackage.tiles
Class TileCreator
- java.lang.Object
-
- mil.nga.geopackage.tiles.TileCreator
-
public class TileCreator extends Object
Tile Creator, creates a tile from a tile matrix to the desired projection- Since:
- 1.2.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description TileCreator(TileDao tileDao)
Constructor, request raw tile images directly from the tile table in their original sizeTileCreator(TileDao tileDao, Integer width, Integer height, String imageFormat)
ConstructorTileCreator(TileDao tileDao, Integer width, Integer height, Projection requestProjection, String imageFormat)
ConstructorTileCreator(TileDao tileDao, String imageFormat)
Constructor, use the tile tables image width and height as request sizeTileCreator(TileDao tileDao, Projection requestProjection, String imageFormat)
Constructor, use the tile tables image width and height as request size and request as the specified projection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getHeight()
Get the requested tile heightString
getImageFormat()
Get the requested image formatProjection
getRequestProjection()
Get the request projectionTileScaling
getScaling()
Get the tile scaling optionsGeoPackageTile
getTile(BoundingBox requestBoundingBox)
Get the tile from the request bounding box in the request projectionGeoPackageTile
getTile(BoundingBox requestBoundingBox, long zoomLevel)
Get the tile from the request bounding box in the request projection, only from the zoom levelTileDao
getTileDao()
Get the tile daoTileMatrixSet
getTileMatrixSet()
Get the tile matrix setBoundingBox
getTileSetBoundingBox()
Get the tile set bounding boxProjection
getTilesProjection()
Get the tiles projectionInteger
getWidth()
Get the requested tile widthboolean
hasTile(BoundingBox requestBoundingBox)
Check if the tile table contains a tile for the request bounding boxboolean
isSameProjection()
Is the request and tile projection the sameboolean
isSameUnit()
Is the request and tile projection the same unitvoid
setScaling(TileScaling scaling)
Set the tile scaling options
-
-
-
Constructor Detail
-
TileCreator
public TileCreator(TileDao tileDao, Integer width, Integer height, Projection requestProjection, String imageFormat)
Constructor- Parameters:
tileDao
- tile daowidth
- request widthheight
- request heightrequestProjection
- request projectionimageFormat
- image format
-
TileCreator
public TileCreator(TileDao tileDao, String imageFormat)
Constructor, use the tile tables image width and height as request size- Parameters:
tileDao
- tile daoimageFormat
- image format
-
TileCreator
public TileCreator(TileDao tileDao, Integer width, Integer height, String imageFormat)
Constructor- Parameters:
tileDao
- tile daowidth
- request widthheight
- request heightimageFormat
- image format- Since:
- 5.0.0
-
TileCreator
public TileCreator(TileDao tileDao, Projection requestProjection, String imageFormat)
Constructor, use the tile tables image width and height as request size and request as the specified projection- Parameters:
tileDao
- tile daorequestProjection
- request projectionimageFormat
- image format
-
TileCreator
public TileCreator(TileDao tileDao)
Constructor, request raw tile images directly from the tile table in their original size- Parameters:
tileDao
- tile dao
-
-
Method Detail
-
getTileDao
public TileDao getTileDao()
Get the tile dao- Returns:
- tile dao
-
getWidth
public Integer getWidth()
Get the requested tile width- Returns:
- width
-
getHeight
public Integer getHeight()
Get the requested tile height- Returns:
- height
-
getTileMatrixSet
public TileMatrixSet getTileMatrixSet()
Get the tile matrix set- Returns:
- tile matrix set
-
getRequestProjection
public Projection getRequestProjection()
Get the request projection- Returns:
- request projection
-
getTilesProjection
public Projection getTilesProjection()
Get the tiles projection- Returns:
- tiles projection
-
getTileSetBoundingBox
public BoundingBox getTileSetBoundingBox()
Get the tile set bounding box- Returns:
- tile set bounding box
-
isSameProjection
public boolean isSameProjection()
Is the request and tile projection the same- Returns:
- true if the same
-
isSameUnit
public boolean isSameUnit()
Is the request and tile projection the same unit- Returns:
- true if the same
- Since:
- 4.0.0
-
getScaling
public TileScaling getScaling()
Get the tile scaling options- Returns:
- tile scaling options
- Since:
- 2.0.2
-
setScaling
public void setScaling(TileScaling scaling)
Set the tile scaling options- Parameters:
scaling
- tile scaling options- Since:
- 2.0.2
-
getImageFormat
public String getImageFormat()
Get the requested image format- Returns:
- image format
-
hasTile
public boolean hasTile(BoundingBox requestBoundingBox)
Check if the tile table contains a tile for the request bounding box- Parameters:
requestBoundingBox
- request bounding box in the request projection- Returns:
- true if a tile exists
-
getTile
public GeoPackageTile getTile(BoundingBox requestBoundingBox)
Get the tile from the request bounding box in the request projection- Parameters:
requestBoundingBox
- request bounding box in the request projection- Returns:
- tile
-
getTile
public GeoPackageTile getTile(BoundingBox requestBoundingBox, long zoomLevel)
Get the tile from the request bounding box in the request projection, only from the zoom level- Parameters:
requestBoundingBox
- request bounding box in the request projectionzoomLevel
- zoom level- Returns:
- tile
- Since:
- 5.0.0
-
-