public class BingMapsMapProvider extends RemoteTileProviderBase
BingMaps 地图服务提供者。
BingMapsMapProvider 提供了从 Bing Maps 在线服务中获取地图服务的能力,并封装了与 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
构造器和说明 |
---|
BingMapsMapProvider()
默认构造函数
|
BingMapsMapProvider(BingMapsMapProviderSetting setting)
带参构造函数
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
cacheEnabled() |
protected java.lang.String |
getBingMapsTileTemplate()
获取 bing maps 瓦片的url模板
|
protected int |
getLevel(double resolution)
根据分辨率获取对应级别
|
protected java.lang.String |
getMapName()
获得地图名。
|
protected Point2D |
getOrigin(java.lang.String mapName)
获取地图的左上角地理坐标。
|
protected java.lang.String |
getRemoteTileImageUrl(int colIndex, int rowIndex, double currentResolution)
获取远程服务器的地址
|
protected java.lang.String |
getSubDomain()
随机返回一个域。
|
protected java.util.List<java.lang.String> |
getSubDomains()
获得地图服务器域名列表。
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
|
double[] |
getSupportResolutions(java.lang.String mapName)
返回当前服务支持的分辨率 。 |
double[] |
getSupportScales(java.lang.String mapName)
获得支持比例尺集合
|
protected java.lang.String |
getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double currentResolution)
算出瓦片的url .
|
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)
判断两个分辨率是否在容差范围之内(1.0E-6)
|
protected boolean |
loadMetaData()
加载 REST 服务元数据信息。
|
protected void |
setRadom(java.util.Random radom) |
protected void |
setSubdomains(java.util.List<java.lang.String> subdomains)
设置地图服务器域名列表。
|
protected boolean |
tileCacheReadOnly() |
checkLicense, dispose, generateBigImage, getContent, getContent, getContent, getFinalConnectionURL, getImageBySendURL, getImageBySendURL, getTileImage, 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, 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 BingMapsMapProvider(BingMapsMapProviderSetting setting)
带参构造函数
setting
- 地图服务提供者配置public BingMapsMapProvider()
默认构造函数
public double[] getSupportScales(java.lang.String mapName)
mapName
-public double[] getSupportResolutions(java.lang.String mapName)
TiledMapProviderBase
返回当前服务支持的分辨率 。如果支持所有分辨率,则返回空。
getSupportResolutions
在类中 TiledMapProviderBase
mapName
- 地图名public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
获取支持的图片格式数组。
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
- 地图名protected java.util.List<java.lang.String> initSupportedMapNames()
TiledMapProviderBase
initSupportedMapNames
在类中 TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
initDefaultMapParameter
在类中 TiledMapProviderBase
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
在类中 RemoteTileProviderBase
protected Point2D getOrigin(java.lang.String mapName)
TiledMapProviderBase
获取地图的左上角地理坐标。
getOrigin
在类中 TiledMapProviderBase
mapName
- 地图名protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
判断两个分辨率是否在容差范围之内(1.0E-6)
isResolutionEquals
在类中 TiledMapProviderBase
resolution1
- double值resolution2
- double值protected boolean loadMetaData()
加载 REST 服务元数据信息。
protected boolean initLODInfos()
protected java.lang.String getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double currentResolution)
colIndex
-rowIndex
-currentResolution
-protected java.lang.String getRemoteTileImageUrl(int colIndex, int rowIndex, double currentResolution)
colIndex
-rowIndex
-currentResolution
-protected java.lang.String getSubDomain()
protected int getLevel(double resolution)
resolution
-protected java.lang.String getMapName()
protected java.util.List<java.lang.String> getSubDomains()
protected void setSubdomains(java.util.List<java.lang.String> subdomains)
subdomains
-protected java.lang.String getBingMapsTileTemplate()
protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected boolean tileCacheReadOnly()
protected void setRadom(java.util.Random radom)