public class WMTSMapProvider extends RemoteTileProviderBase implements DynamicProjectionable
WMTS地图服务提供者。
WMTSMapProvider 提供了从 WMTS在线服务中获取地图服务的能力,并封装了与 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
构造器和说明 |
---|
WMTSMapProvider() |
WMTSMapProvider(WMTSMapProviderSetting setting)
带参构造函数
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
cacheEnabled() |
java.util.List<PrjCoordSys> |
getDynamicPrjCoordsyses(java.lang.String mapName)
地图支持的动态投影列表。
|
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 java.lang.String |
getTileImageUrl(java.lang.String mapName, int x, int y, double resolution)
根据地图名,行列号以及分辨率得到切片的Url
|
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
初使化默认地图参数
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
得到支持的地图列表
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
判断两个分辨率是否在容差范围之内(1.0E-6)
|
protected WMTSCapabilities |
requestCapabilities()
获取服务元数据信息
|
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 WMTSMapProvider()
public WMTSMapProvider(WMTSMapProviderSetting setting)
带参构造函数
setting
- WMTS地图服务提供者配置protected java.util.List<java.lang.String> initSupportedMapNames()
得到支持的地图列表
initSupportedMapNames
在类中 TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
初使化默认地图参数
initDefaultMapParameter
在类中 TiledMapProviderBase
protected java.lang.String getTileImageUrl(java.lang.String mapName, int x, int y, double resolution)
根据地图名,行列号以及分辨率得到切片的Url
mapName
- 地图名x
- 行y
- 列resolution
- 分辨率protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
判断两个分辨率是否在容差范围之内(1.0E-6)
isResolutionEquals
在类中 TiledMapProviderBase
resolution1
- double值resolution2
- double值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
- 地图名public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
根据地图名得到地图支持的图片格式集合
getSupportImageFormat
在类中 TiledMapProviderBase
mapName
-protected WMTSCapabilities requestCapabilities()
public java.util.List<PrjCoordSys> getDynamicPrjCoordsyses(java.lang.String mapName)
DynamicProjectionable
getDynamicPrjCoordsyses
在接口中 DynamicProjectionable
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
在类中 RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
在类中 TiledMapProviderBase
protected boolean tileCacheReadOnly()