C# 클래스 MapAround.Caching.FileTileCacheAccessor

Represents an object that provides an access to the tile cache storing into files.
상속: ITileCacheAccessor
파일 보기 프로젝트 열기: gkrsu/maparound.core 1 사용 예제들

공개 메소드들

메소드 설명
ExtractTileBytes ( string layer, BoundingRectangle area, string key, string contentType ) : byte[]

Extracts a binary representation of tile from cache.

FileTileCacheAccessor ( string path ) : System.Text

Initializes a new instance of the MapAround.Caching.FileTileCacheAccessor

GetCacheFile ( string layer, BoundingRectangle area, string key, string contentType ) : string

Gets the physical location of the file

Invalidate ( BoundingRectangle area ) : void

Invalidate cache given area.

Invalidate ( string layer, BoundingRectangle area ) : void

Invalidate cache given area.

SaveTileBytes ( string layer, BoundingRectangle area, string key, byte tile, string contentType ) : void

Saves a binary representation of an image into cache.

보호된 메소드들

메소드 설명
FileNameFromCacheKey ( string cacheKey, string contentType ) : string

Gets a file name (excluding directory name) by the cache access key.

GetAreaDir ( BoundingRectangle rectangle ) : string

Gets area

GetLayerDir ( string Layer ) : string

Gets layer directory

비공개 메소드들

메소드 설명
CheckIntersect ( string path, double layerValue, string param ) : IEnumerable

Helps to find the intersection.

DeleteEmptyDirectory ( string path ) : void

Deletes an empty directory.

Lock ( ) : void
Unlock ( ) : void

메소드 상세

ExtractTileBytes() 공개 메소드

Extracts a binary representation of tile from cache.
public ExtractTileBytes ( string layer, BoundingRectangle area, string key, string contentType ) : byte[]
layer string
area BoundingRectangle
key string Access key
contentType string
리턴 byte[]

FileNameFromCacheKey() 보호된 메소드

Gets a file name (excluding directory name) by the cache access key.
protected FileNameFromCacheKey ( string cacheKey, string contentType ) : string
cacheKey string A cache access key
contentType string
리턴 string

FileTileCacheAccessor() 공개 메소드

Initializes a new instance of the MapAround.Caching.FileTileCacheAccessor
public FileTileCacheAccessor ( string path ) : System.Text
path string The path to the files of cache
리턴 System.Text

GetAreaDir() 보호된 메소드

Gets area
protected GetAreaDir ( BoundingRectangle rectangle ) : string
rectangle BoundingRectangle
리턴 string

GetCacheFile() 공개 메소드

Gets the physical location of the file
public GetCacheFile ( string layer, BoundingRectangle area, string key, string contentType ) : string
layer string
area BoundingRectangle
key string
contentType string
리턴 string

GetLayerDir() 보호된 메소드

Gets layer directory
protected GetLayerDir ( string Layer ) : string
Layer string
리턴 string

Invalidate() 공개 메소드

Invalidate cache given area.
public Invalidate ( BoundingRectangle area ) : void
area BoundingRectangle
리턴 void

Invalidate() 공개 메소드

Invalidate cache given area.
public Invalidate ( string layer, BoundingRectangle area ) : void
layer string Layer
area BoundingRectangle Given area
리턴 void

SaveTileBytes() 공개 메소드

Saves a binary representation of an image into cache.
public SaveTileBytes ( string layer, BoundingRectangle area, string key, byte tile, string contentType ) : void
layer string
area BoundingRectangle
key string Access key
tile byte Byte array that contains a binary representation of a tile image
contentType string
리턴 void