com.supermap.services.components.impl
Class DefaultTileStore
- java.lang.Object
-
- com.supermap.services.components.impl.DefaultTileStore
-
- All Implemented Interfaces:
- Disposable, TileStore
public class DefaultTileStore extends java.lang.Object implements TileStore
Tile storage.
-
-
Constructor Summary
Constructors Constructor and Description DefaultTileStore()
-
Method Summary
Methods Modifier and Type Method and Description booleanappendTileVersionUpdate(java.lang.String tileVersionName, double[] scaleDenominators, double[] resolutions, Rectangle2D bounds)Adds the update information to the specified tile version When the version name is empty or does not exist, add the scale to the meta information of the tile set, the map range; When the version name exists, view the tile set with or without additional scale, map range, if not ,then add; whether there exists an additional scale ,map range in the update information of the view version, if not then adds ;voidcommit()Stores the tiles in a tile set.java.lang.StringcreateNewVersion(java.lang.String parentVersion, java.lang.String description, VersionUpdate versionUpdate)Creates a new tile version.voiddispose()Release the resource object.protected TileVersionfindTileVersion(java.lang.String tileVersionName)java.lang.StringgetLastTileVersion()Gets the latest tile version.protected TilesetgetTileset()TilesetDescgetTilesetDesc()Gets the tile description.booleaninit(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)Initialization.booleaninited()Whether it has been initializedprotected booleanisUserDefinedProvider()protected voidsetTileset(Tileset<?,?> tileset)voidstoreTile( tile)Stores tiles.voidstoreTiles([] tiles)Stores tiles.
-
-
-
Method Detail
-
init
public boolean init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
Description copied from interface:TileStoreInitialization.
-
appendTileVersionUpdate
public boolean appendTileVersionUpdate(java.lang.String tileVersionName, double[] scaleDenominators, double[] resolutions, Rectangle2D bounds)Adds the update information to the specified tile version When the version name is empty or does not exist, add the scale to the meta information of the tile set, the map range; When the version name exists, view the tile set with or without additional scale, map range, if not ,then add; whether there exists an additional scale ,map range in the update information of the view version, if not then adds ;
- Specified by:
appendTileVersionUpdatein interfaceTileStore- Parameters:
tileVersionName- Tile versionscaleDenominators- Scale denominator arrayresolutions- Resolution arraybounds- Tile range.- Returns:
-
storeTile
public void storeTile( tile) throws StoreTileFailedExceptionDescription copied from interface:TileStoreStores tiles.
- Specified by:
storeTilein interfaceTileStore- Throws:
StoreTileFailedException
-
getTileset
protected Tileset getTileset()
-
setTileset
protected void setTileset(Tileset<?,?> tileset)
-
isUserDefinedProvider
protected boolean isUserDefinedProvider()
-
storeTiles
public void storeTiles([] tiles) throws StoreTileFailedExceptionDescription copied from interface:TileStoreStores tiles.
- Specified by:
storeTilesin interfaceTileStore- Throws:
StoreTileFailedException
-
findTileVersion
protected TileVersion findTileVersion(java.lang.String tileVersionName)
-
dispose
public void dispose()
Description copied from interface:DisposableRelease the resource object.
- Specified by:
disposein interfaceDisposable
-
createNewVersion
public java.lang.String createNewVersion(java.lang.String parentVersion, java.lang.String description, VersionUpdate versionUpdate)Description copied from interface:TileStoreCreates a new tile version.
- Specified by:
createNewVersionin interfaceTileStore- Returns:
-
inited
public boolean inited()
Whether it has been initialized
- Returns:
-
getLastTileVersion
public java.lang.String getLastTileVersion()
Description copied from interface:TileStoreGets the latest tile version.
- Specified by:
getLastTileVersionin interfaceTileStore- Returns:
-
commit
public void commit()
Description copied from interface:TileStoreStores the tiles in a tile set.
-
getTilesetDesc
public TilesetDesc getTilesetDesc()
Description copied from interface:TileStoreGets the tile description.
- Specified by:
getTilesetDescin interfaceTileStore- Returns:
-
-