public class CloudMapProvider extends RemoteTileProviderBase
SuperMap cloud the map service provider.
CloudMapProvider provides the ability to get map services from SuperMap cloud online services and encapsulates GIS functionality related to SuperMap iServer .
RemoteTileProviderBase.GetDefaultImageWhenExceptionTiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameterSEND_REQUEST_COUNTCACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth| Constructor and Description |
|---|
CloudMapProvider()
Default constructor
|
CloudMapProvider(CloudMapProviderSetting setting)
Constructors with parameters
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
cacheEnabled() |
protected int |
getLevel(double resolution)
According to the resolution to get the level
|
protected Point2D |
getOrigin(java.lang.String mapName)
Gets the geographic coordinates of the upper left corner of the map.
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
|
double[] |
getSupportResolutions(java.lang.String mapName)
Returns the resolution of the current service support.
|
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 colIndex, int rowIndex, double resolution)
Gets the requested block map URL
|
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
Rectangle2D |
getViewBounds(java.lang.String mapName)
Returns the visual range supported by the map.
|
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Initializes the default map state, the return value is a map, the key is the map name, and the value is the map parameter object.
|
protected boolean |
initLODInfos()
Initializes tile information.
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Initialize the list of supported maps.
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2)
Determines if two resolutions are within the tolerance (1.0E-6)
|
dispose, generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, getTileImage, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntirecheckSetting, 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, updateMappublic CloudMapProvider(CloudMapProviderSetting setting)
Constructors with parameters
setting - Map service provider configurationpublic CloudMapProvider()
Default constructor
protected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames in class TiledMapProviderBaseprotected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
Initializes the default map state, the return value is a map, the key is the map name, and the value is the map parameter object.
initDefaultMapParameter in class TiledMapProviderBaseprotected Point2D getOrigin(java.lang.String mapName)
Gets the geographic coordinates of the upper left corner of the map.
getOrigin in class TiledMapProviderBasemapName - Map namepublic double[] getSupportResolutions(java.lang.String mapName)
Returns the resolution of the current service support. If all resolutions are supported, empty is returned.
getSupportResolutions in class TiledMapProviderBasemapName - Map namepublic double[] getSupportScales(java.lang.String mapName)
According to the map name to get the scale set what the maps support.
mapName - Map name
protected boolean isResolutionEquals(double resolution1,
double resolution2)
TiledMapProviderBaseDetermines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals in class TiledMapProviderBaseresolution1 - Resolution1resolution1 - Resolution2resolution2 - double
protected java.lang.String getTileImageUrl(java.lang.String mapName,
int colIndex,
int rowIndex,
double resolution)
Gets the requested block map URL
mapName - Map namecolIndex - Column indexrowIndex - Row indexresolution - Resolution Gets the requested block map URLprotected int getLevel(double resolution)
According to the resolution to get the level
resolution - Resolutionprotected boolean initLODInfos()
Initializes tile information.
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
getSupportImageFormat in class TiledMapProviderBasemapName - Map namepublic Rectangle2D getViewBounds(java.lang.String mapName)
Returns the visual range supported by the map.
mapName - Map nameprotected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl in class RemoteTileProviderBaseprotected boolean cacheEnabled()
cacheEnabled in class TiledMapProviderBase