Skip to content

EncryptedFileRasterTileCache

Namespace: ThinkGeo.Core

public class EncryptedFileRasterTileCache : FileRasterTileCache

Inheritance ObjectTileCacheRasterTileCacheFileRasterTileCacheEncryptedFileRasterTileCache

Properties

CacheDirectory

Gets or sets the cache direcory.

public string CacheDirectory { get; set; }

Property Value

String

NoDataTileImage

This property returns back a preset image showing the tileView data is missing.

public GeoImage NoDataTileImage { get; }

Property Value

GeoImage

LoadingTileImage

This property returns back a preset image showing the Tile is loading.

public GeoImage LoadingTileImage { get; }

Property Value

GeoImage

ImageFormat

Gets or sets the tileView image format.

public GeoImageFormat ImageFormat { get; set; }

Property Value

GeoImageFormat

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

Int16

TileAccessMode

Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete

public TileAccessMode TileAccessMode { get; set; }

Property Value

TileAccessMode

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

String

ExpirationTime

public TimeSpan ExpirationTime { get; set; }

Property Value

TimeSpan

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)

protected void SaveTileCore(Tile tile)

Parameters

tile Tile

GetTileCore(Int32, Int64, Int64)

protected Tile GetTileCore(int zoom, long column, long row)

Parameters

zoom Int32

column Int64

row Int64

Returns

Tile

Events

GottenCacheTile

public event EventHandler<GottenCacheImageBitmapTileCacheEventArgs> GottenCacheTile;

GettingCacheTile

public event EventHandler<GettingCacheImageBitmapTileCacheEventArgs> GettingCacheTile;