public abstract class ArcGISCacheProviderBase extends LocalTileProviderBase
The base class of ArcGIS cache provider.
TiledMapProviderBase.TileDataConverter, TiledMapProviderBase.TileImageDrawer, TiledMapProviderBase.TileImageParameter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mapName |
protected java.nio.file.Path |
rootPath |
localTileResource
CACHE_DIR, LINK_MARK, lock, logger, message, QUESTION_MARK, REGEX, REPLACEMENT, tilePixHeight, tilePixWidth
Constructor and Description |
---|
ArcGISCacheProviderBase()
Default constructor
|
ArcGISCacheProviderBase(MapProviderSetting setting)
Constructors with parameters
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
cacheEnabled() |
void |
dispose()
Release the resource object.
|
protected java.lang.String[] |
getDefaultCachePath() |
abstract java.lang.String |
getMapName() |
protected Point2D |
getOrigin(java.lang.String mapName)
Gets the geographic coordinates of the upper left corner of the map.
|
abstract java.nio.file.Path |
getRootPath() |
OutputFormat[] |
getSupportImageFormat(java.lang.String mapName)
Returns an array of image formats supported by the specified map
|
double[] |
getSupportResolutions(java.lang.String mapName)
Returns the resolution of the current service support.
|
protected byte[] |
getTileImage(TiledMapProviderBase.TileImageParameter tileImageParameter)
Get the picture
|
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 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)
|
generateBigImage
checkSetting, clearCache, fillWatermark, findNearest, getDefaultMapParameter, getDefaultMapParameters, getMapImage, getMapParameter, getMapProviderSetting, getNames, getOverview, getProximalResolution, getProximalResolution, getResolutoinByScale, getResource, getResource, getTileDataConverter, getVectorStyle, init, measureArea, measureDistance, outputImage, outputImage, outputImageToFile, outputImageToFile, queryByBounds, queryByDistance, queryByGeometry, queryBySQL, rectifyMapParameter, setDefaultMapParameter, setDefaultMapParameters, setMapProviderSetting, setProviderContext, support, updateMap, viewEntire
protected java.lang.String mapName
protected java.nio.file.Path rootPath
public ArcGISCacheProviderBase(MapProviderSetting setting)
Constructors with parameters
setting
- Map service provider configurationpublic ArcGISCacheProviderBase()
Default constructor
public abstract java.nio.file.Path getRootPath()
public abstract java.lang.String getMapName()
protected java.lang.String[] getDefaultCachePath()
protected java.util.List<java.lang.String> initSupportedMapNames()
initSupportedMapNames
in class TiledMapProviderBase
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.
initDefaultMapParameter
in class TiledMapProviderBase
protected Point2D getOrigin(java.lang.String mapName)
Gets the geographic coordinates of the upper left corner of the map.
getOrigin
in class TiledMapProviderBase
mapName
- 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 TiledMapProviderBase
mapName
- Map name.public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Returns an array of image formats supported by the specified map
getSupportImageFormat
in class TiledMapProviderBase
mapName
-public void dispose()
TiledMapProviderBase
Release the resource object.
dispose
in interface Disposable
dispose
in class TiledMapProviderBase
protected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileImageParameter)
Get the picture
getTileImage
in class LocalTileProviderBase
tileImageParameter
- Picture parametersprotected boolean cacheEnabled()
cacheEnabled
in class TiledMapProviderBase
protected boolean isResolutionEquals(double resolution1, double resolution2)
TiledMapProviderBase
Determines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals
in class TiledMapProviderBase
resolution1
- doubleresolution2
- double