public interface TileCacheManager
TileCacheServices.| Modifier and Type | Method and Description |
|---|---|
CacheStruct |
createCacheStructure(int typeOfCoords,
int levels,
Rectangle2D layerExtent,
double pixelSize,
int tilePxWidth,
int tilePxHeight,
String layerName,
String strategy,
String baseDir,
String fileSuffix,
String epsg,
long fileSize)
Builds a standard cache structure for local files
|
CacheStruct |
createCacheStructure(int typeOfCoords,
int levels,
Rectangle2D layerExtent,
double pixelSize,
int tilePxWidth,
int tilePxHeight,
String uri,
String layerName,
String strategy,
String baseDir,
String fileSuffix,
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,
Point2D ul,
Point2D lr)
Creates a new tile structure
|
TileCache |
getTileCache(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(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, Point2D ul, Point2D lr)
wPx - Width in pixelshPx - Height in pixelsrow - Tile rowcol - Tile columnul - Upper left coordinatelr - Lower roght coordinateCacheStruct createCacheStructure(int typeOfCoords, int levels, Rectangle2D layerExtent, double pixelSize, int tilePxWidth, int tilePxHeight, String uri, String layerName, String strategy, String baseDir, String fileSuffix, 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, Rectangle2D layerExtent, double pixelSize, int tilePxWidth, int tilePxHeight, String layerName, String strategy, String baseDir, String fileSuffix, 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()