com.supermap.services.components.tilecache
接口 ImageTileCache<T extends TileSourceInfo>
-
- 所有已知实现类:
- DefaultImageTileCache
public interface ImageTileCache<T extends TileSourceInfo>
-
-
方法概要
方法 限定符和类型 方法和说明 voidcacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData, PrjCoordSys defaultPrjCoordSys)缓存一个出图请求。voidclear(java.lang.String mapName, Rectangle2D bounds)清除制定地图,指定范围内的切片缓存voidclearAll(java.lang.String mapName)清除指定地图全部切片缓存voiddispose()释放缓存相关资源ImageMetaDatagetBestImageMetaData(MapParameter mapParameter, ImageOutputOption outputOption, double resolution, PrjCoordSys defaultPrjCoordSys)获取最佳匹配瓦片集的元数据(读取场景,user 优先) 委托给 Provider.getBestTileset(query, false)Point2DgetCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)找到符合当前请求的切片原点。ImageTileInfogetImageCache(MapParameter mapParameter, ImageOutputOption outputOption, PrjCoordSys defaultPrjCoordSys)获取给定出图请求的图片缓存。TilesetInfo[]getTilesetInfos(java.lang.String mapName)获取给定地图的所有切片信息。booleanisAvailable()返回缓存是否有效的状态booleansupportsResampling()判断底层 TileSource 是否支持重采样 委托给 TileSourceProvider.supportsResampling()
-
-
-
方法详细资料
-
cacheImage
void cacheImage(MapParameter mapParam, ImageOutputOption outputOption, byte[] imageData, PrjCoordSys defaultPrjCoordSys) throws MapException
缓存一个出图请求。
- 参数:
mapParam-outputOption-imageData- 切片的二进制数据defaultPrjCoordSys- 地图默认坐标系(用于计算 needEpsgSuffix),可为 null- 抛出:
MapException
-
getImageCache
ImageTileInfo getImageCache(MapParameter mapParameter, ImageOutputOption outputOption, PrjCoordSys defaultPrjCoordSys) throws MapException
获取给定出图请求的图片缓存。
- 参数:
mapParameter- 地图参数outputOption- 输出选项defaultPrjCoordSys- 地图默认坐标系(用于计算 needEpsgSuffix),可为 null- 返回:
- 瓦片信息
- 抛出:
MapException- 从以下版本开始:
- 12.0.0
-
getTilesetInfos
TilesetInfo[] getTilesetInfos(java.lang.String mapName)
获取给定地图的所有切片信息。- 参数:
mapName-- 返回:
-
clear
void clear(java.lang.String mapName, Rectangle2D bounds) throws MapException清除制定地图,指定范围内的切片缓存
- 参数:
mapName- 地图名bounds- 范围,如果为空,则清除所有- 抛出:
MapException
-
clearAll
void clearAll(java.lang.String mapName) throws MapException清除指定地图全部切片缓存
- 参数:
mapName- 地图名- 抛出:
MapException
-
dispose
void dispose()
释放缓存相关资源
-
getCompatibleTileOrigin
Point2D getCompatibleTileOrigin(MapParameter param, ImageOutputOption outputOption)
找到符合当前请求的切片原点。
- 参数:
param-outputOption-- 返回:
- 从以下版本开始:
- 8.1.0
-
isAvailable
boolean isAvailable()
返回缓存是否有效的状态
- 返回:
- 从以下版本开始:
- 8.1.0
-
getBestImageMetaData
ImageMetaData getBestImageMetaData(MapParameter mapParameter, ImageOutputOption outputOption, double resolution, PrjCoordSys defaultPrjCoordSys)
获取最佳匹配瓦片集的元数据(读取场景,user 优先)委托给 Provider.getBestTileset(query, false)
- 参数:
mapParameter- 地图参数outputOption- 输出选项resolution- 分辨率defaultPrjCoordSys- 地图默认坐标系(用于计算 needEpsgSuffix),可为 null- 返回:
- 元数据,或 null
- 从以下版本开始:
- 12.0.0
-
supportsResampling
boolean supportsResampling()
判断底层 TileSource 是否支持重采样委托给 TileSourceProvider.supportsResampling()
- 返回:
- true 表示支持重采样
- 从以下版本开始:
- 12.0.0
-
-