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)
是否启用生成时写入 hashcode
|
void |
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() |
public void dispose()
public String getName()
public void setName(String name)
public boolean fromConfigFile(String fileName)
fileName
- public Map getMap()
public void setMap(Map map)
map
- public String getOutputFolder()
public void setOutputFolder(String outputFolder)
outputFolder
- public boolean toConfigFile()
public boolean removeMapCache(String cacheConfigPathName)
public Tile[] getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
public Tile[] getTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat, boolean isPreciseMatch)
public Tile[] getMixedTiles(Rectangle2D bounds, double scale, boolean transparent, TileSize tileSize, TileFormat tileFormat)
public String[] getCacheFiles()
public Rectangle2D getIndexBounds()
public void setIndexBounds(Rectangle2D indexBounds)
public boolean clear(Rectangle2D bounds, boolean isDeletingStaticCache)
public boolean clear(String cacheName, Rectangle2D bounds, boolean isDeletingStaticCache)
public StorageType getStorageType()
public void setStorageType(StorageType storageType)
public void setHashCodeIgnored(boolean enable)
enable
- public boolean isHashCodeIgnored()
public static void setIsDisposable(com.supermap.data.InternalHandleDisposable obj, boolean disposable)
Copyright © 2021–2024 SuperMap. All rights reserved.