public class DefaultTileStore extends java.lang.Object implements TileStore
Tile storage.
| Constructor and Description |
|---|
DefaultTileStore() |
| Modifier and Type | Method and Description |
|---|---|
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 ;
|
void |
commit()
Stores the tiles in a tile set.
|
java.lang.String |
createNewVersion(java.lang.String parentVersion, java.lang.String description, VersionUpdate versionUpdate)
Creates a new tile version.
|
void |
dispose()
Release the resource object.
|
protected TileVersion |
findTileVersion(java.lang.String tileVersionName) |
java.lang.String |
getLastTileVersion()
Gets the latest tile version.
|
protected Tileset |
getTileset() |
TilesetDesc |
getTilesetDesc()
Gets the tile description.
|
boolean |
init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
Initialization.
|
boolean |
inited()
Whether it has been initialized
|
protected boolean |
isUserDefinedProvider() |
protected void |
setTileset(Tileset<?,?> tileset) |
void |
storeTile( tile)
Stores tiles.
|
void |
storeTiles([] tiles)
Stores tiles.
|
public boolean init(TileSourceInfo tileSourceInfo, MetaData metaData, boolean createTilesetIfNotExist)
TileStoreInitialization.
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 ;
appendTileVersionUpdate in interface TileStoretileVersionName - Tile versionscaleDenominators - Scale denominator arrayresolutions - Resolution arraybounds - Tile range.
public void storeTile( tile)
throws StoreTileFailedException
TileStoreStores tiles.
storeTile in interface TileStoreStoreTileFailedExceptionprotected Tileset getTileset()
protected void setTileset(Tileset<?,?> tileset)
protected boolean isUserDefinedProvider()
public void storeTiles([] tiles)
throws StoreTileFailedException
TileStoreStores tiles.
storeTiles in interface TileStoreStoreTileFailedExceptionprotected TileVersion findTileVersion(java.lang.String tileVersionName)
public void dispose()
DisposableRelease the resource object.
dispose in interface Disposable
public java.lang.String createNewVersion(java.lang.String parentVersion,
java.lang.String description,
VersionUpdate versionUpdate)
TileStoreCreates a new tile version.
createNewVersion in interface TileStorepublic boolean inited()
Whether it has been initialized
public java.lang.String getLastTileVersion()
TileStoreGets the latest tile version.
getLastTileVersion in interface TileStorepublic void commit()
TileStoreStores the tiles in a tile set.
public TilesetDesc getTilesetDesc()
TileStoreGets the tile description.
getTilesetDesc in interface TileStore