public abstract class ArcGISCacheProviderBase extends LocalTileProviderBase
限定符和类型 | 类和说明 |
---|---|
protected static class |
ArcGISCacheProviderBase.DefaultTileDataConverter |
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
限定符和类型 | 字段和说明 |
---|---|
protected AGSCacheReader |
cacheReader |
protected boolean |
loadedMetadata |
protected java.lang.String |
mapName |
protected java.util.List<java.lang.String> |
mapNames |
protected AGSMetaData |
metaData |
protected static ResourceManager |
resourceManager |
protected java.nio.file.Path |
rootPath |
protected Point2D |
tileOrigin |
localTileResource
CACHE_DIR, defaultMapParameters, dpi, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
构造器和说明 |
---|
ArcGISCacheProviderBase() |
ArcGISCacheProviderBase(MapProviderSetting setting) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
cacheEnabled() |
protected java.awt.image.BufferedImage |
getBufferedImage(byte[] imageData) |
abstract AGSCacheReader |
getCacheReader(java.nio.file.Path path, java.lang.String[] fileNames) |
protected java.lang.String[] |
getDefaultCachePath() |
protected int |
getLevel(double currentResolution) |
protected int |
getLevel(double[] resolutions, double currentResolution) |
abstract java.lang.String |
getMapName() |
protected Point2D |
getOrigin(java.lang.String mapName)
获取地图的左上角地理坐标。
|
abstract java.nio.file.Path |
getRootPath() |
protected |
getSpheroidAxis(PrjCoordSys prjCoordSys) |
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
返回支持的图片格式。
|
double[] |
getSupportResolutions(java.lang.String mapName)
返回当前服务支持的分辨率 。 |
protected TiledMapProviderBase.TileDataConverter |
getTileDataConverter() |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
初始化支持的地图列表。
|
protected boolean |
isRemoteServiceCached(double currentResolution) |
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
判断两个分辨率是否在容差范围之内(1.0E-6)
|
protected TiledMapProviderBase.TileDataConverter |
newDefaultTileDataConverter(MapProviderSetting setting) |
checkLicense, generateBigImage, getTileImage, tileCacheReadOnly
checkSetting, clearAllCache, clearCache, dispose, fillWatermark, findNearest, getAccurateResolution, getBottom, getBottom, getDefaultMapParameter, getDefaultMapParameters, getLeft, getLeftIndex, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getRight, getTileIndex, getTop, getTop, getTopIndex, getTopOrBottomTileIndex, getVectorStyle, getVectorStyle, init, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, point2DConvert, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap, viewEntire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
protected static final ResourceManager resourceManager
protected java.util.List<java.lang.String> mapNames
protected Point2D tileOrigin
protected boolean loadedMetadata
protected java.lang.String mapName
protected AGSCacheReader cacheReader
protected java.nio.file.Path rootPath
protected AGSMetaData metaData
public ArcGISCacheProviderBase(MapProviderSetting setting)
public ArcGISCacheProviderBase()
protected TiledMapProviderBase.TileDataConverter newDefaultTileDataConverter(MapProviderSetting setting)
public abstract AGSCacheReader getCacheReader(java.nio.file.Path path, java.lang.String[] fileNames)
public abstract java.nio.file.Path getRootPath()
public abstract java.lang.String getMapName()
protected java.lang.String[] getDefaultCachePath()
protected java.awt.image.BufferedImage getBufferedImage(byte[] imageData)
getBufferedImage
在类中 TiledMapProviderBase
protected TiledMapProviderBase.TileDataConverter getTileDataConverter()
public double[] getSupportResolutions(java.lang.String mapName)
TiledMapProviderBase
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
getSupportResolutions
在类中 TiledMapProviderBase
mapName
- 地图名protected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBase
initSupportedMapNames
在类中 TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
TiledMapProviderBase
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
initDefaultMapParameter
在类中 TiledMapProviderBase
protected getSpheroidAxis(PrjCoordSys prjCoordSys)
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
TiledMapProviderBase
返回支持的图片格式。
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
- 地图名protected Point2D getOrigin(java.lang.String mapName)
TiledMapProviderBase
获取地图的左上角地理坐标。
getOrigin
在类中 TiledMapProviderBase
mapName
- 地图名protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
判断两个分辨率是否在容差范围之内(1.0E-6)
isResolutionEquals
在类中 TiledMapProviderBase
resolution1
- double值resolution2
- double值protected boolean isRemoteServiceCached(double currentResolution)
protected int getLevel(double currentResolution)
protected int getLevel(double[] resolutions, double currentResolution)