public class TiandituMapProvider extends RemoteTileProviderBase
天地图 地图服务提供者。
TiandituMapProvider 提供了从 天地图 在线服务中获取地图服务的能力,并封装了与 SuperMap iServer 地图相关的 GIS 功能。
RemoteTileProviderBase.GetDefaultImageWhenException
TiledMapProviderBase.AcceptOnePicDrawer, TiledMapProviderBase.DefaultTileImageDrawer, TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
logger, message, SEND_REQUEST_COUNT
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() |
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, getImageBySendURL, getImageBySendURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldsByLayerName, getTileImage
public TiandituMapProvider(TiandituMapProviderSetting setting)
带参构造函数
setting
- 地图服务提供者配置public TiandituMapProvider()
默认构造函数
protected java.util.List<java.lang.String> initSupportedMapNames()
初始化支持的地图名。
initSupportedMapNames
在类中 TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
获取默认的地图参数。
initDefaultMapParameter
在类中 TiledMapProviderBase
protected Point2D getOrigin(java.lang.String mapName)
获取地图的起始点(左上角)。
getOrigin
在类中 TiledMapProviderBase
mapName
- 地图名。public double[] getSupportResolutions(java.lang.String mapName)
获取地图支持的分辨率
getSupportResolutions
在类中 TiledMapProviderBase
mapName
- 地图名。public double[] getSupportScales(java.lang.String mapName)
mapName
- 地图名。protected boolean isResolutionEquals(double resolution1, double resolution2, boolean isMercator)
resolution1double值
-resolution2double值
-protected java.lang.String getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double resolution)
protected int getLevel(double resolution, boolean isMercator)
protected boolean initLODInfos()
初始化瓦片信息。
return 初始化是否成功public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
- 地图名protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
在类中 RemoteTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage
在类中 RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected boolean tileCacheReadOnly()