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 |
localTileResourceCACHE_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)
|
generateBigImagecheckSetting, 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, viewEntireprotected 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 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 name.public OutputFormat[] getSupportImageFormat(java.lang.String mapName)
Returns an array of image formats supported by the specified map
getSupportImageFormat in class TiledMapProviderBasemapName -public void dispose()
TiledMapProviderBaseRelease the resource object.
dispose in interface Disposabledispose in class TiledMapProviderBaseprotected byte[] getTileImage(TiledMapProviderBase.TileImageParameter tileImageParameter)
Get the picture
getTileImage in class LocalTileProviderBasetileImageParameter - Picture parametersprotected boolean cacheEnabled()
cacheEnabled in class TiledMapProviderBase
protected boolean isResolutionEquals(double resolution1,
double resolution2)
TiledMapProviderBaseDetermines if two resolutions are within the tolerance (1.0E-6)
isResolutionEquals in class TiledMapProviderBaseresolution1 - doubleresolution2 - double