com.supermap.data.processing
类 MapCacheProvider
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.processing.MapCacheProvider
-
- 所有已实现的接口:
- IDisposable
public class MapCacheProvider extends com.supermap.data.InternalHandleDisposable
-
-
构造器概要
构造器 构造器和说明 MapCacheProvider()
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 boolean
addMapCache(String cacheConfigPathName, String password)
boolean
clear(Rectangle2D bounds, boolean isDeletingStaticCache)
boolean
clear(String cacheName, Rectangle2D bounds, boolean isDeletingStaticCache)
void
dispose()
boolean
fromConfigFile(String fileName)
导入缓存文件,根据缓存数据的配置文件中的内容来指定相关属性的值String[]
getCacheFiles()
Rectangle2D
getIndexBounds()
Map
getMap()
获取用于创建缓存的地图Tile[]
getMixedTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
String
getName()
String
getOutputFolder()
获取生成缓存的路径StorageType
getStorageType()
Tile[]
getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
Tile[]
getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat, boolean isPreciseMatch)
boolean
isHashCodeIgnored()
获取是否启用boolean
removeMapCache(String cacheConfigPathName)
void
setHashCodeIgnored(boolean enable)
是否启用生成时写入 hashcodevoid
setIndexBounds(Rectangle2D indexBounds)
static void
setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
void
setMap(Map map)
设置用于创建缓存的地图void
setName(String name)
void
setOutputFolder(String outputFolder)
设置生成缓存的路径void
setStorageType(StorageType storageType)
boolean
toConfigFile()
-
-
-
方法详细资料
-
dispose
public void dispose()
-
getName
public String getName()
-
setName
public void setName(String name)
-
fromConfigFile
public boolean fromConfigFile(String fileName)
导入缓存文件,根据缓存数据的配置文件中的内容来指定相关属性的值- 参数:
fileName
-- 返回:
-
getMap
public Map getMap()
获取用于创建缓存的地图- 返回:
-
setMap
public void setMap(Map map)
设置用于创建缓存的地图- 参数:
map
-
-
getOutputFolder
public String getOutputFolder()
获取生成缓存的路径- 返回:
-
setOutputFolder
public void setOutputFolder(String outputFolder)
设置生成缓存的路径- 参数:
outputFolder
-
-
toConfigFile
public boolean toConfigFile()
-
removeMapCache
public boolean removeMapCache(String cacheConfigPathName)
-
getTiles
public Tile[] getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
-
getTiles
public Tile[] getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat, boolean isPreciseMatch)
-
getMixedTiles
public Tile[] getMixedTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
-
getCacheFiles
public String[] getCacheFiles()
-
getIndexBounds
public Rectangle2D getIndexBounds()
-
setIndexBounds
public void setIndexBounds(Rectangle2D indexBounds)
-
clear
public boolean clear(Rectangle2D bounds, boolean isDeletingStaticCache)
-
clear
public boolean clear(String cacheName, Rectangle2D bounds, boolean isDeletingStaticCache)
-
getStorageType
public StorageType getStorageType()
-
setStorageType
public void setStorageType(StorageType storageType)
-
setHashCodeIgnored
public void setHashCodeIgnored(boolean enable)
是否启用生成时写入 hashcode- 参数:
enable
-
-
isHashCodeIgnored
public boolean isHashCodeIgnored()
获取是否启用- 返回:
-
setIsDisposable
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.