com.supermap.services.providers
类 ArcGISCacheProviderBase
- java.lang.Object
-
- com.supermap.services.components.spi.TiledMapProviderBase
-
- com.supermap.services.providers.LocalTileProviderBase
-
- com.supermap.services.providers.ArcGISCacheProviderBase
-
- 所有已实现的接口:
- Disposable, MapProvider, ProviderContextAware
public abstract class ArcGISCacheProviderBase extends LocalTileProviderBase
-
-
嵌套类概要
嵌套类 限定符和类型 类和说明 protected static class
ArcGISCacheProviderBase.DefaultTileDataConverter
-
从类继承的嵌套类/接口 com.supermap.services.components.spi.TiledMapProviderBase
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
-
从类继承的字段 com.supermap.services.providers.LocalTileProviderBase
localTileResource
-
从类继承的字段 com.supermap.services.components.spi.TiledMapProviderBase
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)
-
从类继承的方法 com.supermap.services.providers.LocalTileProviderBase
checkLicense, generateBigImage, getTileImage, tileCacheReadOnly
-
从类继承的方法 com.supermap.services.components.spi.TiledMapProviderBase
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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.supermap.services.components.spi.MapProvider
getFieldsByLayerName, getTileImage
-
-
-
-
字段详细资料
-
resourceManager
protected static final ResourceManager resourceManager
-
mapNames
protected java.util.List<java.lang.String> mapNames
-
tileOrigin
protected Point2D tileOrigin
-
loadedMetadata
protected boolean loadedMetadata
-
mapName
protected java.lang.String mapName
-
cacheReader
protected AGSCacheReader cacheReader
-
rootPath
protected java.nio.file.Path rootPath
-
metaData
protected AGSMetaData metaData
-
-
构造器详细资料
-
ArcGISCacheProviderBase
public ArcGISCacheProviderBase(MapProviderSetting setting)
-
ArcGISCacheProviderBase
public ArcGISCacheProviderBase()
-
-
方法详细资料
-
newDefaultTileDataConverter
protected TiledMapProviderBase.TileDataConverter newDefaultTileDataConverter(MapProviderSetting setting)
-
getCacheReader
public abstract AGSCacheReader getCacheReader(java.nio.file.Path path, java.lang.String[] fileNames)
-
getRootPath
public abstract java.nio.file.Path getRootPath()
-
getMapName
public abstract java.lang.String getMapName()
-
getDefaultCachePath
protected java.lang.String[] getDefaultCachePath()
-
getBufferedImage
protected java.awt.image.BufferedImage getBufferedImage(byte[] imageData)
- 覆盖:
getBufferedImage
在类中TiledMapProviderBase
-
getTileDataConverter
protected TiledMapProviderBase.TileDataConverter getTileDataConverter()
-
getSupportResolutions
public double[] getSupportResolutions(java.lang.String mapName)
从类复制的说明:TiledMapProviderBase
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
- 指定者:
getSupportResolutions
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名- 返回:
- 分辨率数组
-
initSupportedMapNames
protected java.util.List<java.lang.String> initSupportedMapNames()
从类复制的说明:TiledMapProviderBase
初始化支持的地图列表。- 指定者:
initSupportedMapNames
在类中TiledMapProviderBase
- 返回:
- 地图名列表
-
initDefaultMapParameter
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
从类复制的说明:TiledMapProviderBase
初始化默认地图状态,返回值为一个映射,键为地图名,值为地图参数对象。
- 指定者:
initDefaultMapParameter
在类中TiledMapProviderBase
- 返回:
- 地图状态映射,键为地图名,值为地图参数对象。
-
getSpheroidAxis
protected getSpheroidAxis(PrjCoordSys prjCoordSys)
-
getSupportImageFormat
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
从类复制的说明:TiledMapProviderBase
返回支持的图片格式。
- 指定者:
getSupportImageFormat
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名- 返回:
- 支持的图片格式数组。
-
getOrigin
protected Point2D getOrigin(java.lang.String mapName)
从类复制的说明:TiledMapProviderBase
获取地图的左上角地理坐标。
- 指定者:
getOrigin
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名- 返回:
- 地图的左上角地理坐标。
-
cacheEnabled
protected boolean cacheEnabled()
- 指定者:
cacheEnabled
在类中TiledMapProviderBase
-
isResolutionEquals
protected boolean isResolutionEquals(double resolution1, double resolution2)
从类复制的说明:TiledMapProviderBase
判断两个分辨率是否在容差范围之内(1.0E-6)
- 覆盖:
isResolutionEquals
在类中TiledMapProviderBase
- 参数:
resolution1
- double值resolution2
- double值- 返回:
- 是否相等
-
isRemoteServiceCached
protected boolean isRemoteServiceCached(double currentResolution)
-
getLevel
protected int getLevel(double currentResolution)
-
getLevel
protected int getLevel(double[] resolutions, double currentResolution)
-
-