com.supermap.services.components.tilecache

接口 ImageTileCache<T extends TileSourceInfo>

    • 方法详细资料

      • 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