com.supermap.services.providers
类 TPKMapProvider
- java.lang.Object
-
- 所有已实现的接口:
- Disposable, MapProvider, ProviderContextAware
public class TPKMapProvider extends ArcGISCacheV1ProviderBase
TPK 地图服务提供者。
TPKMapProvider 提供了从 本地TPK文件中获取地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.services.providers.ArcGISCacheProviderBase
ArcGISCacheProviderBase.DefaultTileDataConverter
-
从类继承的嵌套类/接口 com.supermap.services.components.spi.TiledMapProviderBase
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
-
-
字段概要
-
从类继承的字段 com.supermap.services.providers.ArcGISCacheV1ProviderBase
cacheV1Reader
-
从类继承的字段 com.supermap.services.providers.ArcGISCacheProviderBase
cacheReader, loadedMetadata, mapName, mapNames, metaData, resourceManager, rootPath, 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
-
-
构造器概要
构造器 构造器和说明 TPKMapProvider()
默认构造函数TPKMapProvider(TPKMapProviderSetting setting)
带参构造函数
-
方法概要
方法 限定符和类型 方法和说明 void
dispose()
释放资源对象。protected java.io.InputStream
getCompactTileStream(int level, int row, int col)
protected java.lang.String[]
getDefaultCachePath()
java.lang.String
getMapName()
java.nio.file.Path
getRootPath()
protected TiledMapProviderBase.TileDataConverter
newDefaultTileDataConverter(MapProviderSetting setting)
MapImage
viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
根据地图图层名、地图参数以及图片输出设置进行全幅显示。-
从类继承的方法 com.supermap.services.providers.ArcGISCacheV1ProviderBase
getCacheReader, getTileImage
-
从类继承的方法 com.supermap.services.providers.ArcGISCacheProviderBase
cacheEnabled, getBufferedImage, getLevel, getLevel, getOrigin, getSpheroidAxis, getSupportImageFormat, getSupportResolutions, getTileDataConverter, initDefaultMapParameter, initSupportedMapNames, isRemoteServiceCached, isResolutionEquals
-
从类继承的方法 com.supermap.services.providers.LocalTileProviderBase
checkLicense, generateBigImage, tileCacheReadOnly
-
从类继承的方法 com.supermap.services.components.spi.TiledMapProviderBase
checkSetting, clearAllCache, clearCache, 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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.supermap.services.components.spi.MapProvider
getFieldsByLayerName, getTileImage
-
-
-
-
构造器详细资料
-
TPKMapProvider
public TPKMapProvider(TPKMapProviderSetting setting)
带参构造函数
- 参数:
setting
- 地图服务提供者配置
-
TPKMapProvider
public TPKMapProvider()
默认构造函数
-
-
方法详细资料
-
newDefaultTileDataConverter
protected TiledMapProviderBase.TileDataConverter newDefaultTileDataConverter(MapProviderSetting setting)
-
getRootPath
public java.nio.file.Path getRootPath()
- 指定者:
getRootPath
在类中ArcGISCacheV1ProviderBase
-
viewEntire
public MapImage viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
从接口复制的说明:MapProvider
根据地图图层名、地图参数以及图片输出设置进行全幅显示。
参数中指定的图层名称是指以该图层内容的最小外接矩形作为全幅显示的地理范围。
- 指定者:
viewEntire
在接口中MapProvider
- 覆盖:
viewEntire
在类中TiledMapProviderBase
- 参数:
layerName
- 地图图层名,即以该图层的最小外接矩形作为全幅显示的地理范围。mapParameter
- 地图参数。outputOption
- 图片输出设置。- 返回:
- 地图对象。
-
getCompactTileStream
protected java.io.InputStream getCompactTileStream(int level, int row, int col)
-
dispose
public void dispose()
从类复制的说明:TiledMapProviderBase
释放资源对象。
- 指定者:
dispose
在接口中Disposable
- 覆盖:
dispose
在类中ArcGISCacheV1ProviderBase
-
getMapName
public java.lang.String getMapName()
- 指定者:
getMapName
在类中ArcGISCacheV1ProviderBase
-
getDefaultCachePath
protected java.lang.String[] getDefaultCachePath()
-
-