com.supermap.services.tilesource
Interface Tileset<T extends MetaData,V extends >
-
- All Known Subinterfaces:
- ImageTileset
- All Known Implementing Classes:
- AbstractImageTileset
public interface Tileset<T extends MetaData,V extends >The slice set. Contains meta information of slices and lots of slices
- Since:
- 6.1.3
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringLATESTVERSIONNAME
-
Method Summary
Methods Modifier and Type Method and Description booleanappend(double[] toAppendScales, double[] toAppendResolutions, Rectangle2D toAppendBounds, java.lang.String tileVersion)Specify the slice version for the current slice set to add a scale, a resolution array, and a slice range.voidclear(Rectangle2D bounds)Clears the slices within the specified rangevoidclose()Close the slice setTileVersioncreateTileVersion(java.lang.String desc, java.lang.String parent, VersionUpdate update)Creates a new tile version.voiddelete(java.util.List<Tile> tiles)Clears the specified slice setvoiddeleteAll()Removes all slicesbooleanexists(Tile tile)Determines if the specified slice is presentdoublefindResolutionByScaleDenominator(double scaleDenominator)Obtains its corresponding resolution according to the scale denominator.Vget(Tile tile)Gets specified slice informationTgetMetaData()Returns meta informationjava.lang.StringgetName()Slice set name, naming convention {type name} _tileset_ {gettileId via MetaData get}TilesetDescgetTilesetDesc()Gets the result dataset informationjava.util.List<TileVersion>getVersions()Returns all slice version information.voidput(V tileInfo)Adds or modifies a slice
-
-
-
Field Detail
-
LATESTVERSIONNAME
static final java.lang.String LATESTVERSIONNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaData
T getMetaData()
Returns meta information
- Returns:
- Since:
- 6.1.3
-
getVersions
java.util.List<TileVersion> getVersions()
Returns all slice version information.
- Returns:
- Since:
- 6.1.3
-
createTileVersion
TileVersion createTileVersion(java.lang.String desc, java.lang.String parent, VersionUpdate update)
Creates a new tile version.
- Parameters:
desc- description informationparent- parent version number, if empty, parent version is the last updated versionupdate- update information- Returns:
- Since:
- 6.1.3
-
put
void put(V tileInfo) throws PutTileFailedException
Adds or modifies a slice
- Parameters:
tile- slice information- Throws:
PutTileFailedException- Since:
- 6.1.3
-
get
V get(Tile tile)
Gets specified slice information
- Parameters:
tile- slice description- Returns:
- slice information
- Since:
- 7.0.0
-
deleteAll
void deleteAll()
Removes all slices
- Since:
- 6.1.3
-
delete
void delete(java.util.List<Tile> tiles)
Clears the specified slice set
- Parameters:
tiles- The set of slices to be cleared- Since:
- 6.1.3
-
exists
boolean exists(Tile tile)
Determines if the specified slice is present
- Parameters:
tile- The slice to be judged- Returns:
- Since:
- 6.1.3
-
close
void close()
Close the slice set
- Since:
- 6.1.3
-
getName
java.lang.String getName()
Slice set name, naming convention {type name} _tileset_ {gettileId via MetaData get}
- Returns:
- Since:
- 6.1.3
-
append
boolean append(double[] toAppendScales, double[] toAppendResolutions, Rectangle2D toAppendBounds, java.lang.String tileVersion)Specify the slice version for the current slice set to add a scale, a resolution array, and a slice range.- Parameters:
toAppendScales- Scale denominator array.toAppendResolutions-toAppendBounds- If empty, indicates that the scale or range is added under the current slice set.
-
clear
void clear(Rectangle2D bounds)
Clears the slices within the specified range
- Parameters:
bounds- The range of slices to be cleared
-
getTilesetDesc
TilesetDesc getTilesetDesc()
Gets the result dataset information
-
findResolutionByScaleDenominator
double findResolutionByScaleDenominator(double scaleDenominator)
Obtains its corresponding resolution according to the scale denominator.
- Returns:
- resolution.
- Since:
- 7.1.0
-
-