Class TileCreator
java.lang.Object
mil.nga.geopackage.tiles.retriever.TileCreator
Tile Creator, creates a tile from a tile matrix to the desired projection
- Since:
- 1.3.0
-
Constructor Summary
ConstructorDescriptionTileCreator
(TileDao tileDao) Constructor, tile tables tile size and projectionTileCreator
(TileDao tileDao, Integer width, Integer height) Constructor, tile tables projection with specified tile sizeTileCreator
(TileDao tileDao, Integer width, Integer height, Projection requestProjection) Constructor, specified tile size and projectionTileCreator
(TileDao tileDao, Projection requestProjection) Constructor, tile tables tile size and requested projection -
Method Summary
Modifier and TypeMethodDescriptionGet the requested tile heightGet the request projectionGet the tile scaling optionsgetTile
(BoundingBox requestBoundingBox) Get the tile from the request bounding box in the request projectiongetTile
(BoundingBox requestBoundingBox, long zoomLevel) Get the tile from the request bounding box in the request projection, only from the zoom levelGet the tile daoGet the tile matrix setGet the tile set bounding boxGet the tiles projectiongetWidth()
Get the requested tile widthboolean
hasTile
(BoundingBox requestBoundingBox) Check if the tile table contains a tile for the request bounding boxboolean
Is the request and tile projection the sameboolean
Is the request and tile projection the same unitvoid
setScaling
(TileScaling scaling) Set the tile scaling options
-
Constructor Details
-
TileCreator
Constructor, specified tile size and projection- Parameters:
tileDao
- tile daowidth
- requested widthheight
- requested heightrequestProjection
- requested projection
-
TileCreator
Constructor, tile tables tile size and projection- Parameters:
tileDao
- tile dao
-
TileCreator
Constructor, tile tables projection with specified tile size- Parameters:
tileDao
- tile daowidth
- requested widthheight
- requested height
-
TileCreator
Constructor, tile tables tile size and requested projection- Parameters:
tileDao
- tile daorequestProjection
- requested projection
-
-
Method Details
-
getTileDao
Get the tile dao- Returns:
- tile dao
-
getWidth
Get the requested tile width- Returns:
- width
-
getHeight
Get the requested tile height- Returns:
- height
-
getTileMatrixSet
Get the tile matrix set- Returns:
- tile matrix set
-
getRequestProjection
Get the request projection- Returns:
- request projection
-
getTilesProjection
Get the tiles projection- Returns:
- tiles projection
-
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
Get the tile scaling options- Returns:
- tile scaling options
- Since:
- 2.0.2
-
setScaling
Set the tile scaling options- Parameters:
scaling
- tile scaling options- Since:
- 2.0.2
-
hasTile
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
Get the tile from the request bounding box in the request projection- Parameters:
requestBoundingBox
- request bounding box in the request projection- Returns:
- tile
-
getTile
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
-