public class TileDao extends UserDao<TileColumn,TileTable,TileRow,TileCursor>
projection| Constructor and Description |
|---|
TileDao(String database,
GeoPackageConnection db,
TileConnection tileDb,
TileMatrixSet tileMatrixSet,
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() |
BoundingBox |
getBoundingBox(long zoomLevel)
Get the bounding box of tiles
|
Long |
getClosestZoomLevel(double length)
Get the closest zoom level for the provided width and height in the
default units
|
Long |
getClosestZoomLevel(double width,
double height)
Get the closest zoom level for the provided width and height in the
default units
|
double |
getMaxLength()
Get the max length in default units that contains tiles
|
long |
getMaxZoom()
Get the max zoom
|
double |
getMinLength()
Get the min length in default units that contains tiles
|
long |
getMinZoom()
Get the min zoom
|
TileConnection |
getTileDb()
Get the Tile connection
|
TileGrid |
getTileGrid(long zoomLevel)
Get the tile grid of the zoom level
|
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
|
Long |
getZoomLevel(double length)
Get the zoom level for the provided width and height in the default units
|
Long |
getZoomLevel(double width,
double height)
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 |
queryByTileGrid(TileGrid tileGrid,
long zoomLevel,
String orderBy)
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
|
TileGrid |
queryForTileGrid(long zoomLevel)
Query for the bounding
|
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
|
getDatabaseConnection, insert, insert, insertOrThrow, update, updatebuildValueWhere, buildValueWhereArgs, buildWhere, buildWhere, buildWhere, buildWhere, buildWhereArgs, buildWhereArgs, buildWhereArgs, buildWhereArgs, count, count, create, delete, delete, deleteById, dropTable, getDatabase, getDb, getPkWhere, getPkWhereArgs, getProjection, getTable, getTableName, getUserDb, getZoomLevel, max, min, query, query, query, queryForAll, queryForEq, queryForEq, queryForEq, queryForFieldValues, queryForId, queryForIdRow, queryForValueFieldValuespublic TileDao(String database, GeoPackageConnection db, TileConnection tileDb, TileMatrixSet tileMatrixSet, List<TileMatrix> tileMatrices, TileTable table)
database - db - tileDb - tileMatrixSet - tileMatrices - table - public BoundingBox getBoundingBox()
getBoundingBox in class UserCoreDao<TileColumn,TileTable,TileRow,TileCursor>public BoundingBox getBoundingBox(long zoomLevel)
zoomLevel - zoom levelpublic TileGrid getTileGrid(long zoomLevel)
zoomLevel - zoom levelpublic void adjustTileMatrixLengths()
public TileRow newRow()
newRow in class UserCoreDao<TileColumn,TileTable,TileRow,TileCursor>public TileConnection getTileDb()
public TileMatrixSet getTileMatrixSet()
public 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 Long getZoomLevel(double length)
length - in default unitspublic Long getZoomLevel(double width, double height)
width - in default unitsheight - in default unitspublic Long getClosestZoomLevel(double length)
length - in default unitspublic Long getClosestZoomLevel(double width, double height)
width - in default unitsheight - in default unitspublic TileCursor queryByTileGrid(TileGrid tileGrid, long zoomLevel)
tileGrid - tile gridzoomLevel - zoom levelpublic TileCursor queryByTileGrid(TileGrid tileGrid, long zoomLevel, String orderBy)
tileGrid - tile gridzoomLevel - zoom levelorderBy - order bypublic TileGrid queryForTileGrid(long zoomLevel)
zoomLevel - public int deleteTile(long column,
long row,
long zoomLevel)
column - row - zoomLevel - public int count(long zoomLevel)
zoomLevel - public double getMaxLength()
public double getMinLength()
public boolean isGoogleTiles()