public class TiandituMapProvider extends RemoteTileProviderBase
Tianditu map service provider.
TiandituMapProvider provides the ability to acquire map services from the Sky Map online service and encapsulates 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 |
---|
TiandituMapProvider()
Default constructor
|
TiandituMapProvider(TiandituMapProviderSetting setting)
Constructors with parameters
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
protected int |
getLevel(double resolution, boolean isMercator) |
protected Point2D |
getOrigin(java.lang.String mapName)
Get the starting point of the map (top left).
|
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
|
double[] |
getSupportResolutions(java.lang.String mapName)
Gets the resolution supported by map
|
double[] |
getSupportScales(java.lang.String mapName)
Get scale supported by map.
|
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.lang.String |
getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double resolution) |
protected java.lang.String |
getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam) |
protected java.util.Map<java.lang.String,MapParameter> |
initDefaultMapParameter()
Gets the default map parameters.
|
protected boolean |
initLODInfos()
Initializes tile information.
|
protected java.util.List<java.lang.String> |
initSupportedMapNames()
Initializes the supported map names.
|
protected boolean |
isResolutionEquals(double resolution1, double resolution2, boolean isMercator) |
dispose, generateBigImage, getContent, getContent, getContent, getImageBySendURL, getImageBySendURL, init, sendRequestByHttpURLConnection, sendRequestByHttpURLConnection, viewEntire
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, isResolutionEquals, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap
public TiandituMapProvider(TiandituMapProviderSetting setting)
Constructors with parameters
setting
- Map service provider configurationpublic TiandituMapProvider()
Default constructor
protected java.util.List<java.lang.String> initSupportedMapNames()
Initializes the supported map names.
initSupportedMapNames
in class TiledMapProviderBase
protected java.util.Map<java.lang.String,MapParameter> initDefaultMapParameter()
Gets the default map parameters.
initDefaultMapParameter
in class TiledMapProviderBase
protected Point2D getOrigin(java.lang.String mapName)
Get the starting point of the map (top left).
getOrigin
in class TiledMapProviderBase
mapName
- map name.public double[] getSupportResolutions(java.lang.String mapName)
Gets the resolution supported by map
getSupportResolutions
in class TiledMapProviderBase
mapName
- map name.public double[] getSupportScales(java.lang.String mapName)
mapName
- map name.protected boolean isResolutionEquals(double resolution1, double resolution2, boolean isMercator)
resolution1double
- valueresolution2double
- valueprotected java.lang.String getTileImageUrl(java.lang.String mapName, int colIndex, int rowIndex, double resolution)
protected int getLevel(double resolution, boolean isMercator)
protected boolean initLODInfos()
Initializes tile information.
public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Gets an array of supported image formats.
getSupportImageFormat
in class TiledMapProviderBase
mapName
- Map nameprotected java.lang.String getTileImageUrl(TiledMapProviderBase.TileImageParameter tileParam)
getTileImageUrl
in class RemoteTileProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileParam)
getTileImage
in class RemoteTileProviderBase
protected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase