public class WMTSMapProvider extends RemoteTileProviderBase implements DynamicProjectionable
WMTS map service provider.
WMTSMapProvider provides the ability to get a map service from the WMTS online service and encapsulates the SuperMap iServer mapes GIS functionality related to SuperMap iServer map.
RemoteTileProviderBase.GetDefaultImageWhenException
TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
SEND_REQUEST_COUNT
CACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
Constructor and Description |
---|
WMTSMapProvider() |
WMTSMapProvider(WMTSMapProviderSetting setting)
Constructors with parameters
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
java.util.List<PrjCoordSys> |
getDynamicPrjCoordsyses(java.lang.String mapName)
Map supported dynamic projection lists.
|
protected Point2D |
getOrigin(java.lang.String mapName)
Gets the origin of the slice
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Gets the image format collection of map supported based on the map name
|
double[] |
getSupportResolutions(java.lang.String mapName)
Gets a collection of supported resolutions
|
double[] |
getSupportScales(java.lang.String mapName)
According to the map name to get the scale set what the maps support.
|
protected java.lang.String |
getTileImageUrl(java.lang.String mapName, int x, int y, double resolution)
Gets the sliced Url according to the map name, the ranks and the resolution
|
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initializes the default map parameters
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Gets a list of supported maps
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
Determines if two resolutions are within the tolerance (1.0E-6)
|
protected WMTSCapabilities |
requestCapabilities()
Gets service metadata information
|
dispose, generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, getTileImage, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
public WMTSMapProvider()
public WMTSMapProvider(WMTSMapProviderSetting setting)
Constructors with parameters
setting
- WMTS map service provider configuresprotected java.util.List<java.lang.String> initSupportedMapNames()
Gets a list of supported maps
initSupportedMapNames
in class TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
Initializes the default map parameters
initDefaultMapParameter
in class TiledMapProviderBase
protected java.lang.String getTileImageUrl(java.lang.String mapName, int x, int y, double resolution)
Gets the sliced Url according to the map name, the ranks and the resolution
mapName
- map name.x
- rawy
- columnresolution
- resolutionprotected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
Determines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals
in class TiledMapProviderBase
resolution1
- doubleresolution2
- doubleprotected Point2D getOrigin(java.lang.String mapName)
Gets the origin of the slice
getOrigin
in class TiledMapProviderBase
mapName
- The map name.public double[] getSupportResolutions(java.lang.String mapName)
Gets a collection of supported resolutions
getSupportResolutions
in class TiledMapProviderBase
mapName
- The map name.public double[] getSupportScales(java.lang.String mapName)
According to the map name to get the scale set what the maps support.
mapName
- Map namepublic OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Gets the image format collection of map supported based on the map name
getSupportImageFormat
in class TiledMapProviderBase
mapName
-protected WMTSCapabilities requestCapabilities()
public java.util.List<PrjCoordSys> getDynamicPrjCoordsyses(java.lang.String mapName)
DynamicProjectionable
getDynamicPrjCoordsyses
in interface DynamicProjectionable
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
in class RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase