public class TileDao extends UserDao<TileColumn,TileTable,TileRow,TileResultSet>
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 |
getMaxZoom()
Get the max zoom
|
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
|
boolean |
isGoogleTiles()
Determine if the tiles are in the Google tile coordinate format
|
TileRow |
newRow() |
TileResultSet |
queryByTileGrid(TileGrid tileGrid,
long zoomLevel)
Query by tile grid and zoom level
|
TileResultSet |
queryForTile(long zoomLevel)
Query for Tiles at a zoom level
|
TileRow |
queryForTile(long column,
long row,
long zoomLevel)
Query for a Tile
|
TileResultSet |
queryForTileDescending(long zoomLevel)
Query for Tiles at a zoom level in descending row and column order
|
TileGrid |
queryForTileGrid(long zoomLevel)
Query for the bounding
|
TileResultSet |
queryForTilesInColumn(long column,
long zoomLevel)
Query for Tiles at a zoom level and column
|
TileResultSet |
queryForTilesInRow(long row,
long zoomLevel)
Query for Tiles at a zoom level and row
|
getConnection, insert, insert, insertOrThrow, update, update
buildValueWhere, 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, queryForValueFieldValues
public 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,TileResultSet>
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,TileResultSet>
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 TileResultSet queryForTile(long zoomLevel)
zoomLevel
- public TileResultSet queryForTileDescending(long zoomLevel)
zoomLevel
- public TileResultSet queryForTilesInColumn(long column, long zoomLevel)
column
- zoomLevel
- public TileResultSet queryForTilesInRow(long row, long zoomLevel)
row
- zoomLevel
- public Long getZoomLevel(double length)
length
- in meterspublic TileResultSet queryByTileGrid(TileGrid tileGrid, long zoomLevel)
tileGrid
- zoomLevel
- public TileGrid queryForTileGrid(long zoomLevel)
zoomLevel
- public int deleteTile(long column, long row, long zoomLevel)
column
- row
- zoomLevel
- public int count(long zoomLevel)
zoomLevel
- public boolean isGoogleTiles()
Copyright © 2015 National Geospatial-Intelligence Agency. All rights reserved.