com.supermap.services.providers
Class WMTSMapProvider
- java.lang.Object
-
- com.supermap.services.components.spi.TiledMapProviderBase
-
- com.supermap.services.providers.RemoteTileProviderBase
-
- com.supermap.services.providers.WMTSMapProvider
-
- All Implemented Interfaces:
- Disposable, DynamicProjectionable, MapProvider, ProviderContextAware
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.services.providers.RemoteTileProviderBase
RemoteTileProviderBase.GetDefaultImageWhenException
-
Nested classes/interfaces inherited from class com.supermap.services.components.spi.TiledMapProviderBase
TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
-
-
Field Summary
-
Fields inherited from class com.supermap.services.providers.RemoteTileProviderBase
SEND_REQUEST_COUNT
-
Fields inherited from class com.supermap.services.components.spi.TiledMapProviderBase
CACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
-
-
Constructor Summary
Constructors Constructor and Description WMTSMapProvider()WMTSMapProvider(WMTSMapProviderSetting setting)Constructors with parameters
-
Method Summary
Methods Modifier and Type Method and Description protected booleancacheEnabled()java.util.List<PrjCoordSys>getDynamicPrjCoordsyses(java.lang.String mapName)Map supported dynamic projection lists.protected Point2DgetOrigin(java.lang.String mapName)Gets the origin of the sliceOutputFormat[]getSupportImageFormat(java.lang.String mapName)Gets the image format collection of map supported based on the map namedouble[]getSupportResolutions(java.lang.String mapName)Gets a collection of supported resolutionsdouble[]getSupportScales(java.lang.String mapName)According to the map name to get the scale set what the maps support.protected java.lang.StringgetTileImageUrl(java.lang.String mapName, int x, int y, double resolution)Gets the sliced Url according to the map name, the ranks and the resolutionprotected java.lang.StringgetTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)protected java.util.Map<java.lang.String,MapParameter>initDefaultMapParameter()Initializes the default map parametersprotected java.util.List<java.lang.String>initSupportedMapNames()Gets a list of supported mapsprotected booleanisResolutionEquals(double resolution1, double resolution2)Determines if two resolutions are within the tolerance (1.0E-6)protected WMTSCapabilitiesrequestCapabilities()Gets service metadata information-
Methods inherited from class com.supermap.services.providers.RemoteTileProviderBase
dispose, generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, getTileImage, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
-
Methods inherited from class com.supermap.services.components.spi.TiledMapProviderBase
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
-
-
-
-
Constructor Detail
-
WMTSMapProvider
public WMTSMapProvider()
-
WMTSMapProvider
public WMTSMapProvider(WMTSMapProviderSetting setting)
Constructors with parameters
- Parameters:
setting- WMTS map service provider configures
-
-
Method Detail
-
initSupportedMapNames
protected java.util.List<java.lang.String> initSupportedMapNames()
Gets a list of supported maps
- Specified by:
initSupportedMapNamesin classTiledMapProviderBase- Returns:
- The map name list.
-
initDefaultMapParameter
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
Initializes the default map parameters
- Specified by:
initDefaultMapParameterin classTiledMapProviderBase- Returns:
- Map status mapping. The key is the map name, and the value is the map parameter object.
-
getTileImageUrl
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
- Parameters:
mapName- map name.x- rawy- columnresolution- resolution
-
isResolutionEquals
protected boolean isResolutionEquals(double resolution1, double resolution2)Description copied from class:TiledMapProviderBaseDetermines if two resolutions are within the tolerance (1.0E-6)
- Overrides:
isResolutionEqualsin classTiledMapProviderBase- Parameters:
resolution1- doubleresolution2- double- Returns:
- Is it equal
-
getOrigin
protected Point2D getOrigin(java.lang.String mapName)
Gets the origin of the slice
- Specified by:
getOriginin classTiledMapProviderBase- Parameters:
mapName- The map name.- Returns:
- The geographical coordinate of left upper corner of the map.
-
getSupportResolutions
public double[] getSupportResolutions(java.lang.String mapName)
Gets a collection of supported resolutions
- Specified by:
getSupportResolutionsin classTiledMapProviderBase- Parameters:
mapName- The map name.- Returns:
- The resolution array.
-
getSupportScales
public double[] getSupportScales(java.lang.String mapName)
According to the map name to get the scale set what the maps support.
- Parameters:
mapName- Map name- Returns:
-
getSupportImageFormat
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Gets the image format collection of map supported based on the map name
- Specified by:
getSupportImageFormatin classTiledMapProviderBase- Parameters:
mapName-- Returns:
- Supported image format array
-
requestCapabilities
protected WMTSCapabilities requestCapabilities()
Gets service metadata information- Returns:
- service metadata
-
getDynamicPrjCoordsyses
public java.util.List<PrjCoordSys> getDynamicPrjCoordsyses(java.lang.String mapName)
Description copied from interface:DynamicProjectionableMap supported dynamic projection lists.- Specified by:
getDynamicPrjCoordsysesin interfaceDynamicProjectionable- Returns:
-
getTileImageUrl
protected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
- Specified by:
getTileImageUrlin classRemoteTileProviderBase
-
cacheEnabled
protected boolean cacheEnabled()
- Specified by:
cacheEnabledin classTiledMapProviderBase
-
-