com.supermap.services.providers
类 TiandituMapProvider
- java.lang.Object
-
- com.supermap.services.components.spi.TiledMapProviderBase
-
- com.supermap.services.providers.RemoteTileProviderBase
-
- com.supermap.services.providers.TiandituMapProvider
-
- 所有已实现的接口:
- Disposable, MapProvider, ProviderContextAware
public class TiandituMapProvider extends RemoteTileProviderBase
天地图 地图服务提供者。
TiandituMapProvider 提供了从 天地图 在线服务中获取地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.supermap.services.providers.RemoteTileProviderBase
RemoteTileProviderBase.GetDefaultImageWhenException
-
从类继承的嵌套类/接口 com.supermap.services.components.spi.TiledMapProviderBase
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
-
-
字段概要
-
从类继承的字段 com.supermap.services.providers.RemoteTileProviderBase
logger, message, SEND_REQUEST_COUNT
-
从类继承的字段 com.supermap.services.components.spi.TiledMapProviderBase
CACHE_DIR, defaultMapParameters, dpi, LINK_MARK, lock, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
-
-
构造器概要
构造器 构造器和说明 TiandituMapProvider()
默认构造函数TiandituMapProvider(TiandituMapProviderSetting setting)
带参构造函数
-
方法概要
方法 限定符和类型 方法和说明 protected boolean
cacheEnabled()
protected int
getLevel(double resolution, boolean isMercator)
protected Point2D
getOrigin(java.lang.String mapName)
获取地图的起始点(左上角)。OutputFormat[]
getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。double[]
getSupportResolutions(java.lang.String mapName)
获取地图支持的分辨率double[]
getSupportScales(java.lang.String mapName)
获取地图支持的比例尺。protected byte[]
getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
protected java.lang.String
getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double resolution)
protected java.lang.String
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
protected java.util.Map<java.lang.String,MapParameter>
initDefaultMapParameter()
获取默认的地图参数。protected boolean
initLODInfos()
初始化瓦片信息。protected java.util.List<java.lang.String>
initSupportedMapNames()
初始化支持的地图名。protected boolean
isResolutionEquals(double resolution1, double resolution2, boolean isMercator)
protected boolean
tileCacheReadOnly()
-
从类继承的方法 com.supermap.services.providers.RemoteTileProviderBase
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, getImageBySendURL, getImageBySendURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
-
从类继承的方法 com.supermap.services.components.spi.TiledMapProviderBase
checkSetting, clearAllCache, clearCache, fillWatermark, findNearest, getAccurateResolution, getBottom, getBottom, getBufferedImage, getDefaultMapParameter, getDefaultMapParameters, getLeft, getLeftIndex, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getRight, getTileDataConverter, getTileIndex, getTop, getTop, getTopIndex, getTopOrBottomTileIndex, getVectorStyle, getVectorStyle, isResolutionEquals, 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
-
-
-
-
构造器详细资料
-
TiandituMapProvider
public TiandituMapProvider(TiandituMapProviderSetting setting)
带参构造函数
- 参数:
setting
- 地图服务提供者配置
-
TiandituMapProvider
public TiandituMapProvider()
默认构造函数
-
-
方法详细资料
-
initSupportedMapNames
protected java.util.List<java.lang.String> initSupportedMapNames()
初始化支持的地图名。
- 指定者:
initSupportedMapNames
在类中TiledMapProviderBase
- 返回:
- 地图名列表。
-
initDefaultMapParameter
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
获取默认的地图参数。
- 指定者:
initDefaultMapParameter
在类中TiledMapProviderBase
- 返回:
- 地图参数列表。key为地图名,value为该地图的默认参数。
-
getOrigin
protected Point2D getOrigin(java.lang.String mapName)
获取地图的起始点(左上角)。
- 指定者:
getOrigin
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名。- 返回:
- 起始点对象。
-
getSupportResolutions
public double[] getSupportResolutions(java.lang.String mapName)
获取地图支持的分辨率
- 指定者:
getSupportResolutions
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名。- 返回:
- 分辨率集合。
-
getSupportScales
public double[] getSupportScales(java.lang.String mapName)
获取地图支持的比例尺。- 参数:
mapName
- 地图名。- 返回:
- 比例尺集合。
-
isResolutionEquals
protected boolean isResolutionEquals(double resolution1, double resolution2, boolean isMercator)
- 参数:
resolution1double值
-resolution2double值
-- 返回:
- 是否相等
-
getTileImageUrl
protected java.lang.String getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double resolution)
-
getLevel
protected int getLevel(double resolution, boolean isMercator)
-
initLODInfos
protected boolean initLODInfos()
初始化瓦片信息。
return 初始化是否成功
-
getSupportImageFormat
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
- 指定者:
getSupportImageFormat
在类中TiledMapProviderBase
- 参数:
mapName
- 地图名- 返回:
- 支持的图片格式数组
-
getTileImageUrl
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
- 指定者:
getTileImageUrl
在类中RemoteTileProviderBase
-
getTileImage
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
- 覆盖:
getTileImage
在类中RemoteTileProviderBase
-
cacheEnabled
protected boolean cacheEnabled()
- 指定者:
cacheEnabled
在类中TiledMapProviderBase
-
tileCacheReadOnly
protected boolean tileCacheReadOnly()
-
-