public class TPKMapProvider extends ArcGISCacheV1ProviderBase
TPK 地图服务提供者。
TPKMapProvider 提供了从 本地TPK文件中获取地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
ArcGISCacheProviderBase.DefaultTileDataConverter
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
cacheV1Reader
cacheReader, loadedMetadata, mapName, mapNames, metaData, resourceManager, rootPath, tileOrigin
localTileResource
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)
根据地图图层名、地图参数以及图片输出设置进行全幅显示。
|
getCacheReader, getTileImage
cacheEnabled, getBufferedImage, getLevel, getLevel, getOrigin, getSpheroidAxis, getSupportImageFormat, getSupportResolutions, getTileDataConverter, initDefaultMapParameter, initSupportedMapNames, isRemoteServiceCached, isResolutionEquals
checkLicense, generateBigImage, tileCacheReadOnly
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
public TPKMapProvider(TPKMapProviderSetting setting)
带参构造函数
setting
- 地图服务提供者配置public TPKMapProvider()
默认构造函数
protected TiledMapProviderBase.TileDataConverter newDefaultTileDataConverter(MapProviderSetting setting)
public java.nio.file.Path getRootPath()
getRootPath
在类中 ArcGISCacheV1ProviderBase
public MapImage viewEntire(java.lang.String layerName, MapParameter mapParameter, ImageOutputOption outputOption)
MapProvider
根据地图图层名、地图参数以及图片输出设置进行全幅显示。
参数中指定的图层名称是指以该图层内容的最小外接矩形作为全幅显示的地理范围。
viewEntire
在接口中 MapProvider
viewEntire
在类中 TiledMapProviderBase
layerName
- 地图图层名,即以该图层的最小外接矩形作为全幅显示的地理范围。mapParameter
- 地图参数。outputOption
- 图片输出设置。protected java.io.InputStream getCompactTileStream(int level, int row, int col)
public void dispose()
TiledMapProviderBase
释放资源对象。
dispose
在接口中 Disposable
dispose
在类中 ArcGISCacheV1ProviderBase
public java.lang.String getMapName()
getMapName
在类中 ArcGISCacheV1ProviderBase
protected java.lang.String[] getDefaultCachePath()