public interface TileCacheManager
TileCacheService
s.Modifier and Type | Method and Description |
---|---|
CacheStruct |
createCacheStructure(int typeOfCoords,
int levels,
java.awt.geom.Rectangle2D layerExtent,
double pixelSize,
int tilePxWidth,
int tilePxHeight,
java.lang.String layerName,
java.lang.String strategy,
java.lang.String baseDir,
java.lang.String fileSuffix,
java.lang.String epsg,
long fileSize)
Builds a standard cache structure for local files
|
CacheStruct |
createCacheStructure(int typeOfCoords,
int levels,
java.awt.geom.Rectangle2D layerExtent,
double pixelSize,
int tilePxWidth,
int tilePxHeight,
java.lang.String uri,
java.lang.String layerName,
java.lang.String strategy,
java.lang.String baseDir,
java.lang.String fileSuffix,
java.lang.String epsg,
long fileSize)
Builds a standard cache structure
|
ThreadPool |
createThreadPool(boolean priorityActive)
Builds a new thread pool.
|
ThreadPool |
createThreadPool(boolean priorityActive,
int nThreads)
Builds a new thread pool selecting the number of threads
|
Tile |
createTile(int level,
int col,
int row)
Creates a new tile structure
|
Tile |
createTile(int wPx,
int hPx,
int row,
int col,
java.awt.geom.Point2D ul,
java.awt.geom.Point2D lr)
Creates a new tile structure
|
TileCache |
getTileCache(java.lang.String baseDir)
Builds a new entry point for a tile cache.
|
int |
getTileTimeOut()
Gets the time out in milliseconds
|
void |
setTileTimeOut(int ms)
Sets the time out in milliseconds
|
TileCache getTileCache(java.lang.String baseDir)
baseDir
- Tile createTile(int level, int col, int row)
level
- col
- Tile columnrow
- Tile rowTile createTile(int wPx, int hPx, int row, int col, java.awt.geom.Point2D ul, java.awt.geom.Point2D lr)
wPx
- Width in pixelshPx
- Height in pixelsrow
- Tile rowcol
- Tile columnul
- Upper left coordinatelr
- Lower roght coordinateCacheStruct createCacheStructure(int typeOfCoords, int levels, java.awt.geom.Rectangle2D layerExtent, double pixelSize, int tilePxWidth, int tilePxHeight, java.lang.String uri, java.lang.String layerName, java.lang.String strategy, java.lang.String baseDir, java.lang.String fileSuffix, java.lang.String epsg, long fileSize)
typeOfCoords
- Constant defined in CacheStruct interfacelevels
- Number of levelslayerExtent
- Bounding box of the layerpixelSize
- Pixel size of the layertilePxWidth
- Width in pixels of a tiletilePxHeight
- Height in pixels of a tileuri
- server URLlayerName
- Layer name or identifierstrategy
- Strategy to store tiles in diskbaseDir
- path to this layerfileSuffix
- File suffixepsg
- CacheStruct createCacheStructure(int typeOfCoords, int levels, java.awt.geom.Rectangle2D layerExtent, double pixelSize, int tilePxWidth, int tilePxHeight, java.lang.String layerName, java.lang.String strategy, java.lang.String baseDir, java.lang.String fileSuffix, java.lang.String epsg, long fileSize)
typeOfCoords
- Constant defined in CacheStruct interfacelevels
- Number of levelslayerExtent
- Bounding box of the layerpixelSize
- Pixel size of the layertilePxWidth
- Width in pixels of a tiletilePxHeight
- Height in pixels of a tilelayerName
- Layer name or identifierstrategy
- Strategy to store tiles in diskbaseDir
- path to this layerfileSuffix
- File suffixepsg
- ThreadPool createThreadPool(boolean priorityActive)
ThreadPool createThreadPool(boolean priorityActive, int nThreads)
void setTileTimeOut(int ms)
ms
- int getTileTimeOut()