com.supermap.services.components.tilecache
Interface ImageTileCache<T extends TileSourceInfo>
-
- All Known Implementing Classes:
- DefaultImageTileCache
public interface ImageTileCache<T extends TileSourceInfo>
-
-
Method Summary
Methods Modifier and Type Method and Description voidcacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData)Caches a drawing request.voidclear(java.lang.String mapName, Rectangle2D bounds)Clears the specified map, specifies the range of the tile cachevoiddispose()Releases cache-related resourcesPoint2DgetCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)Finds the origin of the slice that matches the current request.ImageTileInfogetImageCache(MapParameter mapParameter, ImageOutputOption outputOption)Gets the picture cache for the given drawing request.TilesetInfo[]getTilesetInfos(java.lang.String mapName)Gets all the tile information for a given map.booleanisAvailable()Returns whether the cache is valid
-
-
-
Method Detail
-
cacheImage
void cacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData) throws MapException
Caches a drawing request.
- Parameters:
mapParam-outputOption-imageData- Binary data of tile.- Throws:
MapException
-
getImageCache
ImageTileInfo getImageCache(MapParameter mapParameter, ImageOutputOption outputOption) throws MapException
Gets the picture cache for the given drawing request.
- Parameters:
mapParameter-outputOption-- Returns:
- Tile infomation
- Throws:
MapException
-
getTilesetInfos
TilesetInfo[] getTilesetInfos(java.lang.String mapName)
Gets all the tile information for a given map.- Parameters:
mapName-- Returns:
-
clear
void clear(java.lang.String mapName, Rectangle2D bounds) throws MapExceptionClears the specified map, specifies the range of the tile cache
- Parameters:
mapName- Map namebounds- Range, if empty, clears all- Throws:
MapException
-
dispose
void dispose()
Releases cache-related resources
-
getCompatibleTileOrigin
Point2D getCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)
Finds the origin of the slice that matches the current request.
- Parameters:
param-outputOption-- Returns:
- Since:
- 8.1.0
-
isAvailable
boolean isAvailable()
Returns whether the cache is valid
- Returns:
- Since:
- 8.1.0
-
-