Skip to content

FileVectorTileCache

Namespace: ThinkGeo.Core

public class FileVectorTileCache : TileCache

Inheritance ObjectTileCacheFileVectorTileCache

Properties

CacheDirectory

public string CacheDirectory { get; set; }

Property Value

String

FileExtension

public string FileExtension { get; set; }

Property Value

String

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

FileVectorTileCache()

public FileVectorTileCache()

FileVectorTileCache(String)

public FileVectorTileCache(string cacheDirectory)

Parameters

cacheDirectory String

FileVectorTileCache(String, String)

public FileVectorTileCache(string cacheDirectory, string cacheId)

Parameters

cacheDirectory String

cacheId String

FileVectorTileCache(String, String, String)

public FileVectorTileCache(string cacheDirectory, string cacheId, string fileExtension)

Parameters

cacheDirectory String

cacheId String

fileExtension String

Methods

ClearCacheCore()

protected void ClearCacheCore()

DeleteTileCore(Tile)

protected void DeleteTileCore(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

GetTileAsyncCore(Int32, Int64, Int64, CancellationToken)

protected Task<Tile> GetTileAsyncCore(int zoom, long column, long row, CancellationToken cancellationToken)

Parameters

zoom Int32

column Int64

row Int64

cancellationToken CancellationToken

Returns

Task<Tile>

SaveTileCore(Tile)

protected void SaveTileCore(Tile tile)

Parameters

tile Tile

SaveTileAsyncCore(Tile, CancellationToken)

protected Task SaveTileAsyncCore(Tile tile, CancellationToken cancellationToken)

Parameters

tile Tile

cancellationToken CancellationToken

Returns

Task

Events

GottenCacheTile

public event EventHandler<GottenCacheImageBitmapTileCacheEventArgs> GottenCacheTile;

GettingCacheTile

public event EventHandler<GettingCacheImageBitmapTileCacheEventArgs> GettingCacheTile;