public class TileCreator extends Object
| Constructor and Description |
|---|
TileCreator(TileDao tileDao)
Constructor, tile tables tile size and projection
|
TileCreator(TileDao tileDao,
Integer width,
Integer height)
Constructor, tile tables projection with specified tile size
|
TileCreator(TileDao tileDao,
Integer width,
Integer height,
Projection requestProjection)
Constructor, specified tile size and projection
|
TileCreator(TileDao tileDao,
Projection requestProjection)
Constructor, tile tables tile size and requested projection
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getHeight()
Get the requested tile height
|
Projection |
getRequestProjection()
Get the request projection
|
TileScaling |
getScaling()
Get the tile scaling options
|
GeoPackageTile |
getTile(BoundingBox requestBoundingBox)
Get the tile from the request bounding box in the request projection
|
GeoPackageTile |
getTile(BoundingBox requestBoundingBox,
long zoomLevel)
Get the tile from the request bounding box in the request projection,
only from the zoom level
|
TileDao |
getTileDao()
Get the tile dao
|
TileMatrixSet |
getTileMatrixSet()
Get the tile matrix set
|
BoundingBox |
getTileSetBoundingBox()
Get the tile set bounding box
|
Projection |
getTilesProjection()
Get the tiles projection
|
Integer |
getWidth()
Get the requested tile width
|
boolean |
hasTile(BoundingBox requestBoundingBox)
Check if the tile table contains a tile for the request bounding box
|
boolean |
isSameProjection()
Is the request and tile projection the same
|
boolean |
isSameUnit()
Is the request and tile projection the same unit
|
void |
setScaling(TileScaling scaling)
Set the tile scaling options
|
public TileCreator(TileDao tileDao, Integer width, Integer height, Projection requestProjection)
tileDao - tile daowidth - requested widthheight - requested heightrequestProjection - requested projectionpublic TileCreator(TileDao tileDao)
tileDao - tile daopublic TileCreator(TileDao tileDao, Integer width, Integer height)
tileDao - tile daowidth - requested widthheight - requested heightpublic TileCreator(TileDao tileDao, Projection requestProjection)
tileDao - tile daorequestProjection - requested projectionpublic TileDao getTileDao()
public Integer getWidth()
public Integer getHeight()
public TileMatrixSet getTileMatrixSet()
public Projection getRequestProjection()
public Projection getTilesProjection()
public BoundingBox getTileSetBoundingBox()
public boolean isSameProjection()
public boolean isSameUnit()
public TileScaling getScaling()
public void setScaling(TileScaling scaling)
scaling - tile scaling optionspublic boolean hasTile(BoundingBox requestBoundingBox)
requestBoundingBox - request bounding box in the request projectionpublic GeoPackageTile getTile(BoundingBox requestBoundingBox)
requestBoundingBox - request bounding box in the request projectionpublic GeoPackageTile getTile(BoundingBox requestBoundingBox, long zoomLevel)
requestBoundingBox - request bounding box in the request projectionzoomLevel - zoom level