public abstract class TileReprojectionCore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected GeoPackageCore |
geoPackage
GeoPackage
|
protected TileReprojectionOptimize |
optimize
Optional optimization
|
protected TileGrid |
optimizeTileGrid
Optimization tile grid
|
protected long |
optimizeZoom
Optimization zoom
|
protected boolean |
overwrite
Overwrite existing tiles at a zoom level when geographic calculations
differ
|
protected GeoPackageProgress |
progress
Progress callbacks
|
protected Projection |
projection
Projection
|
protected boolean |
replace
Replace flag
|
protected UserCoreDao<TileColumn,TileTable,?,?> |
reprojectTileDao
Tile DAO
|
protected String |
table
Table name
|
protected UserCoreDao<TileColumn,TileTable,?,?> |
tileDao
Tile DAO
|
protected Long |
tileHeight
Tile height in pixels
|
protected Long |
tileWidth
Tile width in pixels
|
protected Map<Long,TileReprojectionZoom> |
zoomConfigs
Zoom level configuration map
|
| Modifier | Constructor and Description |
|---|---|
protected |
TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao,
GeoPackageCore geoPackage,
String table,
Projection projection)
Constructor
|
protected |
TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao,
GeoPackageCore geoPackage,
UserCoreDao<TileColumn,TileTable,?,?> reprojectTileDao)
Constructor
|
protected |
TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao,
UserCoreDao<TileColumn,TileTable,?,?> reprojectTileDao)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract UserCoreDao<TileColumn,TileTable,?,?> |
createReprojectTileDao(String table)
Create the reprojection tile DAO
|
protected abstract void |
createTileMatrix(TileMatrix tileMatrix)
Create the tile matrix
|
protected abstract void |
deleteTileMatrices(boolean reproject,
String table)
Delete the table tile matrices
|
protected void |
finish()
Finish the reprojection
|
TileReprojectionZoom |
getConfig(long zoom)
Get the zoom level configuration for a zoom level
|
TileReprojectionZoom |
getConfigOrCreate(long zoom)
Get the zoom level configuration or create new configuration for a zoom
level
|
protected abstract long |
getMapZoom(boolean reproject,
TileMatrix tileMatrix)
Get the map zoom of the tile matrix
|
Long |
getMatrixHeight(long zoom)
Get a reprojected matrix height from a zoom level
|
Long |
getMatrixWidth(long zoom)
Get a reprojected matrix width from a zoom level
|
TileReprojectionOptimize |
getOptimize()
Get the optimization
|
protected abstract long |
getOptimizeZoom()
Get the optimization minimum zoom level
|
GeoPackageProgress |
getProgress()
Get the progress callbacks
|
Long |
getTileHeight()
Get the tile height
|
Long |
getTileHeight(long zoom)
Get a reprojected tile height from a zoom level
|
protected abstract List<TileMatrix> |
getTileMatrices(boolean reproject)
Get the tile matrices
|
protected abstract TileMatrix |
getTileMatrix(boolean reproject,
long zoom)
Get the tile matrix
|
protected abstract TileMatrixSet |
getTileMatrixSet(boolean reproject)
Get the tile matrix set
|
Long |
getTileWidth()
Get the tile width
|
Long |
getTileWidth(long zoom)
Get a reprojected tile width from a zoom level
|
long |
getToZoom(long zoom)
Get a reprojected to zoom level from a zoom level, defaults as the zoom
level if not set
|
Map<Long,TileReprojectionZoom> |
getZoomConfigs()
Get the zoom level configurations
|
protected void |
initialize()
Initialize the reprojection
|
protected boolean |
isActive()
Check if currently active
|
boolean |
isOverwrite()
Is overwrite enabled
|
protected BoundingBox |
optimize(BoundingBox boundingBox)
Optimize the bounding box
|
int |
reproject()
Reproject the tile table
|
int |
reproject(List<Long> zooms)
Reproject the tile table for the zoom levels, ordered numerically lowest
to highest
|
int |
reproject(long zoom)
Reproject the tile table for the zoom level
|
int |
reproject(long minZoom,
long maxZoom)
Reproject the tile table within the zoom range
|
protected abstract int |
reproject(long zoom,
long toZoom,
BoundingBox boundingBox,
long matrixWidth,
long matrixHeight,
long tileWidth,
long tileHeight)
Reproject the tiles
|
void |
setConfig(TileReprojectionZoom config)
Set a zoom level configuration for a zoom level
|
void |
setMatrixHeight(long zoom,
long matrixHeight)
Set a reprojected matrix height for a zoom level
|
void |
setMatrixWidth(long zoom,
long matrixWidth)
Set a reprojected matrix width for a zoom level
|
void |
setOptimize(TileReprojectionOptimize optimize)
Set the optimization
|
void |
setOverwrite(boolean overwrite)
Set the overwrite flag
|
void |
setProgress(GeoPackageProgress progress)
Set the progress callbacks
|
void |
setTileHeight(Long tileHeight)
Set the tile height
|
void |
setTileHeight(long zoom,
long tileHeight)
Set a reprojected tile height for a zoom level
|
void |
setTileWidth(Long tileWidth)
Set the tile width
|
void |
setTileWidth(long zoom,
long tileWidth)
Set a reprojected tile width for a zoom level
|
void |
setToZoom(long zoom,
long toZoom)
Set a reprojected to zoom level for a zoom level
|
protected TileReprojectionOptimize optimize
protected boolean overwrite
protected Long tileWidth
protected Long tileHeight
protected GeoPackageProgress progress
protected UserCoreDao<TileColumn,TileTable,?,?> tileDao
protected GeoPackageCore geoPackage
protected String table
protected Projection projection
protected UserCoreDao<TileColumn,TileTable,?,?> reprojectTileDao
protected boolean replace
protected Map<Long,TileReprojectionZoom> zoomConfigs
protected TileGrid optimizeTileGrid
protected long optimizeZoom
protected TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao, GeoPackageCore geoPackage, String table, Projection projection)
tileDao - tile DAOgeoPackage - GeoPackagetable - table nameprojection - projectionprotected TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao, UserCoreDao<TileColumn,TileTable,?,?> reprojectTileDao)
tileDao - tile DAOreprojectTileDao - reprojection tile DAOprotected TileReprojectionCore(UserCoreDao<TileColumn,TileTable,?,?> tileDao, GeoPackageCore geoPackage, UserCoreDao<TileColumn,TileTable,?,?> reprojectTileDao)
tileDao - tile DAOgeoPackage - GeoPackagereprojectTileDao - reprojection tile DAOprotected abstract long getOptimizeZoom()
protected abstract UserCoreDao<TileColumn,TileTable,?,?> createReprojectTileDao(String table)
table - table nameprotected abstract TileMatrixSet getTileMatrixSet(boolean reproject)
reproject - true for reprojection tile daoprotected abstract List<TileMatrix> getTileMatrices(boolean reproject)
reproject - true for reprojection tile daoprotected abstract TileMatrix getTileMatrix(boolean reproject, long zoom)
reproject - true for reprojection tile daozoom - zoom levelprotected abstract void deleteTileMatrices(boolean reproject,
String table)
reproject - true for reprojection tile daotable - table nameprotected abstract long getMapZoom(boolean reproject,
TileMatrix tileMatrix)
reproject - true for reprojection tile daotileMatrix - tile matrixprotected abstract void createTileMatrix(TileMatrix tileMatrix)
tileMatrix - tile matrixprotected abstract int reproject(long zoom,
long toZoom,
BoundingBox boundingBox,
long matrixWidth,
long matrixHeight,
long tileWidth,
long tileHeight)
zoom - zoom leveltoZoom - reprojection zoom levelboundingBox - bounding boxmatrixWidth - matrix widthmatrixHeight - matrix heighttileWidth - tile widthtileHeight - tile heightpublic TileReprojectionOptimize getOptimize()
public void setOptimize(TileReprojectionOptimize optimize)
optimize - optimizationpublic boolean isOverwrite()
public void setOverwrite(boolean overwrite)
overwrite - overwrite flagpublic Long getTileWidth()
public void setTileWidth(Long tileWidth)
tileWidth - tile widthpublic Long getTileHeight()
public void setTileHeight(Long tileHeight)
tileHeight - tile heightpublic GeoPackageProgress getProgress()
public void setProgress(GeoPackageProgress progress)
progress - progress callbackspublic Map<Long,TileReprojectionZoom> getZoomConfigs()
public TileReprojectionZoom getConfig(long zoom)
zoom - from zoom levelpublic TileReprojectionZoom getConfigOrCreate(long zoom)
zoom - from zoom levelpublic void setConfig(TileReprojectionZoom config)
config - zoom configurationpublic void setToZoom(long zoom,
long toZoom)
zoom - zoom leveltoZoom - reprojected zoom levelpublic long getToZoom(long zoom)
zoom - zoom levelpublic void setTileWidth(long zoom,
long tileWidth)
tileWidth - reprojected tile widthzoom - zoom levelpublic Long getTileWidth(long zoom)
zoom - zoom levelpublic void setTileHeight(long zoom,
long tileHeight)
zoom - zoom leveltileHeight - reprojected tile heightpublic Long getTileHeight(long zoom)
zoom - zoom levelpublic void setMatrixWidth(long zoom,
long matrixWidth)
matrixWidth - reprojected matrix widthzoom - zoom levelpublic Long getMatrixWidth(long zoom)
zoom - zoom levelpublic void setMatrixHeight(long zoom,
long matrixHeight)
matrixHeight - reprojected matrix heightzoom - zoom levelpublic Long getMatrixHeight(long zoom)
zoom - zoom levelprotected void initialize()
protected void finish()
public int reproject()
public int reproject(long minZoom,
long maxZoom)
minZoom - min zoommaxZoom - max zoompublic int reproject(List<Long> zooms)
zooms - zoom levels, ordered lowest to highestpublic int reproject(long zoom)
zoom - zoom levelprotected BoundingBox optimize(BoundingBox boundingBox)
boundingBox - bounding boxprotected boolean isActive()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.