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)
TileStore
Initialization.
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 TileStore
tileVersionName
- Tile versionscaleDenominators
- Scale denominator arrayresolutions
- Resolution arraybounds
- Tile range.public void storeTile( tile) throws StoreTileFailedException
TileStore
Stores tiles.
storeTile
in interface TileStore
StoreTileFailedException
protected Tileset getTileset()
protected void setTileset(Tileset<?,?> tileset)
protected boolean isUserDefinedProvider()
public void storeTiles([] tiles) throws StoreTileFailedException
TileStore
Stores tiles.
storeTiles
in interface TileStore
StoreTileFailedException
protected TileVersion findTileVersion(java.lang.String tileVersionName)
public void dispose()
Disposable
Release the resource object.
dispose
in interface Disposable
public java.lang.String createNewVersion(java.lang.String parentVersion, java.lang.String description, VersionUpdate versionUpdate)
TileStore
Creates a new tile version.
createNewVersion
in interface TileStore
public boolean inited()
Whether it has been initialized
public java.lang.String getLastTileVersion()
TileStore
Gets the latest tile version.
getLastTileVersion
in interface TileStore
public void commit()
TileStore
Stores the tiles in a tile set.
public TilesetDesc getTilesetDesc()
TileStore
Gets the tile description.
getTilesetDesc
in interface TileStore