EncryptedFileRasterTileCache¶
Namespace: ThinkGeo.Core
Represents the EncryptedFileRasterTileCache class.
public class EncryptedFileRasterTileCache : FileRasterTileCache
Inheritance object → TileCache → RasterTileCache → FileRasterTileCache → EncryptedFileRasterTileCache
Properties¶
CacheDirectory¶
Gets or sets the root directory where cached tiles are stored.
public string CacheDirectory { get; set; }
Property Value¶
Remarks:
Tiles are stored beneath this directory in a folder hierarchy based on TileCache.CacheId, zoom level, and tile coordinates.
NoDataTileImage¶
This property returns back a preset image showing the tileView data is missing.
public GeoImage NoDataTileImage { get; }
Property Value¶
LoadingTileImage¶
This property returns back a preset image showing the Tile is loading.
public GeoImage LoadingTileImage { get; }
Property Value¶
ImageFormat¶
Gets or sets the tileView image format.
public GeoImageFormat ImageFormat { get; set; }
Property Value¶
JpegQuality¶
Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg.
public short JpegQuality { get; set; }
Property Value¶
TileAccessMode¶
Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete
public TileAccessMode TileAccessMode { get; set; }
Property Value¶
Remarks:
If you want it to take effect, you need set the Read property false.
CacheId¶
Gets or sets the id of the TileCache.
public string CacheId { get; set; }
Property Value¶
ExpirationTime¶
Gets or sets the ExpirationTime.
public TimeSpan ExpirationTime { get; set; }
Property Value¶
Constructors¶
EncryptedFileRasterTileCache()¶
This is the default constructor.
public EncryptedFileRasterTileCache()
Remarks:
If you use this constructor, you have to set the properties manually.
EncryptedFileRasterTileCache(string)¶
This is the overloads constructor.
public EncryptedFileRasterTileCache(string cacheDirectory)
Parameters¶
cacheDirectory string
This parameter specifies the cache directory of the tileView cache.
Remarks:
If you use this constructor, the other properties are set with default values.
EncryptedFileRasterTileCache(string, string)¶
This is the overloads constructor.
public EncryptedFileRasterTileCache(string cacheDirectory, string cacheId)
Parameters¶
cacheDirectory string
This parameter specifies the cache directory of the tileView cache.
cacheId string
This parameter specifies the cache id of the tileView cache.
Remarks:
If you use this constructor, the other properties are set with default values.
Methods¶
SaveTileCore(Tile)¶
Provides the overridable implementation that saves the current object to the specified destination.
protected void SaveTileCore(Tile tile)
Parameters¶
tile Tile
The tile.
Returns¶
GetTileCore(int, long, long)¶
Provides the overridable implementation that returns tile for the specified parameters.
protected Tile GetTileCore(int zoom, long x, long y)
Parameters¶
zoom int
The zoom.
x long
The x-coordinate, in pixels.
y long
The y-coordinate, in pixels.
Returns¶
Tile
The result of the operation.
Events¶
GottenCacheTile¶
Occurs when the GottenCacheTile event is raised.
public event EventHandler<GottenCacheImageBitmapTileCacheEventArgs> GottenCacheTile;
GettingCacheTile¶
Occurs when the GettingCacheTile event is raised.
public event EventHandler<GettingCacheImageBitmapTileCacheEventArgs> GettingCacheTile;
GottenTile¶
Occurs when the GottenTile event is raised.
public event EventHandler<GottenTileTileCacheEventArgs> GottenTile;
GettingTile¶
Occurs when the GettingTile event is raised.
public event EventHandler<GettingTileTileCacheEventArgs> GettingTile;
SavingTile¶
Occurs when the SavingTile event is raised.
public event EventHandler<SavingTileTileCacheEventArgs> SavingTile;
SavedTile¶
Occurs when the SavedTile event is raised.
public event EventHandler<SavedTileTileCacheEventArgs> SavedTile;