public class TileDao extends UserDao<TileColumn,TileTable,TileRow,TileCursor>
| Constructor and Description |
|---|
TileDao(java.lang.String database,
GeoPackageConnection db,
TileConnection tileDb,
TileMatrixSet tileMatrixSet,
java.util.List<TileMatrix> tileMatrices,
TileTable table)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
adjustTileMatrixLengths()
Adjust the tile matrix lengths if needed.
|
int |
count(long zoomLevel)
Count of Tiles at a zoom level
|
int |
deleteTile(long column,
long row,
long zoomLevel)
Delete a Tile
|
BoundingBox |
getBoundingBox() |
long |
getMaxZoom()
Get the max zoom
|
long |
getMinZoom()
Get the min zoom
|
TileConnection |
getTileDb()
Get the Tile connection
|
java.util.List<TileMatrix> |
getTileMatrices()
Get the tile matrices
|
TileMatrix |
getTileMatrix(long zoomLevel)
Get the tile matrix at the zoom level
|
TileMatrixSet |
getTileMatrixSet()
Get the tile matrix set
|
java.lang.Long |
getZoomLevel(double length)
Get the zoom level for the provided width and height in the default units
|
boolean |
isGoogleTiles()
Determine if the tiles are in the Google tile coordinate format
|
TileRow |
newRow() |
TileCursor |
queryByTileGrid(TileGrid tileGrid,
long zoomLevel)
Query by tile grid and zoom level
|
TileCursor |
queryForTile(long zoomLevel)
Query for Tiles at a zoom level
|
TileRow |
queryForTile(long column,
long row,
long zoomLevel)
Query for a Tile
|
TileCursor |
queryForTileDescending(long zoomLevel)
Query for Tiles at a zoom level in descending row and column order
|
TileCursor |
queryForTilesInColumn(long column,
long zoomLevel)
Query for Tiles at a zoom level and column
|
TileCursor |
queryForTilesInRow(long row,
long zoomLevel)
Query for Tiles at a zoom level and row
|
getSQLiteDatabase, insert, insert, insertOrThrow, update, updatepublic TileDao(java.lang.String database,
GeoPackageConnection db,
TileConnection tileDb,
TileMatrixSet tileMatrixSet,
java.util.List<TileMatrix> tileMatrices,
TileTable table)
database - db - tileDb - tileMatrixSet - tileMatrices - table - public BoundingBox getBoundingBox()
public void adjustTileMatrixLengths()
public TileRow newRow()
public TileConnection getTileDb()
public TileMatrixSet getTileMatrixSet()
public java.util.List<TileMatrix> getTileMatrices()
public TileMatrix getTileMatrix(long zoomLevel)
zoomLevel - public long getMinZoom()
public long getMaxZoom()
public TileRow queryForTile(long column, long row, long zoomLevel)
column - row - zoomLevel - public TileCursor queryForTile(long zoomLevel)
zoomLevel - public TileCursor queryForTileDescending(long zoomLevel)
zoomLevel - public TileCursor queryForTilesInColumn(long column, long zoomLevel)
column - zoomLevel - public TileCursor queryForTilesInRow(long row, long zoomLevel)
row - zoomLevel - public java.lang.Long getZoomLevel(double length)
length - in meterspublic TileCursor queryByTileGrid(TileGrid tileGrid, long zoomLevel)
tileGrid - zoomLevel - public int deleteTile(long column,
long row,
long zoomLevel)
column - row - zoomLevel - public int count(long zoomLevel)
zoomLevel - public boolean isGoogleTiles()