User Tools

Site Tools


thinkgeo.mapsuite.core.filebitmaptilecache

This is an old revision of the document!


ThinkGeo.MapSuite.Core.FileBitmapTileCache

This class is a concrete class inherits from BitmapTileCache. In this class, the tiles will be saved in disk and can be viewed very conveniently.

Inheritance Hierarchy

Members Summary

Public Constructors

FileBitmapTileCache

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is the default constructor.

FileBitmapTileCache

  • Parameters:String
  • DeclaringType:N/A
  • Summary:This is the overloads constructor.

FileBitmapTileCache

  • Parameters:String,String
  • DeclaringType:N/A
  • Summary:This is the overloads constructor.

FileBitmapTileCache

  • Parameters:String,String,TileImageFormat,TileMatrix
  • DeclaringType:N/A
  • Summary:This is the constructor with all the parameters needed passed in.

Protected Constructors

Public Methods

ClearCache

  • Parameters:TimeSpan
  • DeclaringType:N/A
  • Summary:N/A

ClearCache

  • Parameters:Double
  • DeclaringType:N/A
  • Summary:N/A

ClearCache

  • Parameters:TimeSpan,Double
  • DeclaringType:N/A
  • Summary:N/A

ClearCache

  • Parameters:N/A
  • DeclaringType:TileCache
  • Summary:N/A

DeleteTile

DeleteTiles

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetHigherScaleTile

GetTile

GetTile

GetTileImageFileName

  • Parameters:Int64,Int64
  • DeclaringType:N/A
  • Summary:N/A

GetTileImageFileNames

GetTiles

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

SaveTile

SaveTiles

SaveTiles

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

/xU=

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:N/A

8xU=

  • Parameters:String
  • DeclaringType:N/A
  • Summary:N/A

9BU=

  • Parameters:Bitmap
  • DeclaringType:N/A
  • Summary:N/A

9RU=

  • Parameters:ImageFormat
  • DeclaringType:N/A
  • Summary:N/A

ClearCacheCore

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This method will clear all the tiles in the tileCache.

DeleteTileCore

  • Parameters:Tile
  • DeclaringType:N/A
  • Summary:This method will delete the target tile passed in.

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetHigherScaleTileCore

  • Parameters:RectangleShape,Double
  • DeclaringType:N/A
  • Summary:This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.

GetTileCore

  • Parameters:Int64,Int64
  • DeclaringType:N/A
  • Summary:This method returns the BitmapTile corresponding to passed in row and column.

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

MergeBitmaps

SaveTileCore

  • Parameters:Tile
  • DeclaringType:N/A
  • Summary:This method will save the target tile passed in, you could override this API to create your own logic.

Public Properties

CacheDirectory

  • Return:String
  • Summary:Gets or sets the cache direcory.

CacheId

  • Return:String
  • Summary:N/A

ExpirationTime

  • Return:TimeSpan
  • Summary:N/A

ImageFormat

JpegQuality

  • Return:Int16
  • Summary:N/A

LoadingTileImage

  • Return:Bitmap
  • Summary:N/A

NoDataTileImage

  • Return:Bitmap
  • Summary:N/A

TileAccessMode

TileMatrix

Protected Properties

Public Events

Public Constructors

FileBitmapTileCache()

This is the default constructor.

Remarks

If you use this constructor, you have to set the properties manually.

Parameters

FileBitmapTileCache(String)

This is the overloads constructor.

Remarks

If you use this constructor, the other properties are set with default values.

Parameters

cacheDirectory

  • Type:String
  • Description:This parameter specifies the cache directory of the tile cache. Go Back === FileBitmapTileCache(String,String) === This is the overloads constructor. ==== Remarks ==== If you use this constructor, the other properties are set with default values. ==== Parameters ==== cacheDirectory * Type:String * Description:This parameter specifies the cache directory of the tile cache.

cacheId

  • Type:String
  • Description:This parameter specifies the cache id of the tile cache. Go Back === FileBitmapTileCache(String,String,TileImageFormat,TileMatrix) === This is the constructor with all the parameters needed passed in. ==== Remarks ==== N/A ==== Parameters ==== cacheDirectory * Type:String * Description:This parameter specifies the cache directory of the tile cache.

cacheId

  • Type:String
  • Description:This parameter specifies the cache id of the tile cache. imageFormat * Type:TileImageFormat * Description:This parameter specifies the image format of the tile cahce.

tileMatrix

  • Description:This parameter specifies the tile matrix of the tile cache. Go Back ===== Protected Constructors ===== ===== Public Methods ===== === ClearCache(TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tileExpiration * Type:TimeSpan * Description:N/A Go Back === ClearCache(Double) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== maxSizeInMegabytes * Type:Double * Description:N/A Go Back === ClearCache(TimeSpan,Double) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tileExpiration * Type:TimeSpan * Description:N/A maxSizeInMegabytes * Type:Double * Description:N/A Go Back === ClearCache() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === DeleteTile(Tile) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tile * Type:Tile * Description:N/A Go Back === DeleteTiles(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== worldExtent * Type:RectangleShape * Description:N/A Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetHigherScaleTile(RectangleShape,Double) === N/A ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:N/A ==== Parameters ==== tileBoundingBox * Type:RectangleShape * Description:N/A tileScale * Type:Double * Description:N/A Go Back === GetTile(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:N/A ==== Parameters ==== tileBoundingBox * Type:RectangleShape * Description:N/A Go Back === GetTile(Int64,Int64) === N/A ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:N/A ==== Parameters ==== row * Type:Int64 * Description:N/A column * Type:Int64 * Description:N/A Go Back === GetTileImageFileName(Int64,Int64) === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== row * Type:Int64 * Description:N/A column * Type:Int64 * Description:N/A Go Back === GetTileImageFileNames(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<String> * Description:N/A ==== Parameters ==== tileBoundingBox * Type:RectangleShape * Description:N/A Go Back === GetTiles(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Collection<BitmapTile> * Description:N/A ==== Parameters ==== worldExtent * Type:RectangleShape * Description:N/A Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === SaveTile(Tile) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tile * Type:Tile * Description:N/A Go Back === SaveTiles(Bitmap,RectangleShape,Boolean) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bitmap * Type:Bitmap * Description:N/A bitmapExtent * Type:RectangleShape * Description:N/A saveContainedCellsOnly * Type:Boolean * Description:N/A Go Back === SaveTiles(Bitmap,RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bitmap * Type:Bitmap * Description:N/A bitmapExtent * Type:RectangleShape * Description:N/A Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === /xU=() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back === 8xU=(String) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== tileImageFileName * Type:String * Description:N/A Go Back === 9BU=(Bitmap) === N/A ==== Remarks ==== N/A Return Value * Return Type:Byte[] * Description:N/A ==== Parameters ==== bitmap * Type:Bitmap * Description:N/A Go Back === 9RU=(ImageFormat) === N/A ==== Remarks ==== N/A Return Value * Return Type:ImageCodecInfo * Description:N/A ==== Parameters ==== format * Type:ImageFormat * Description:N/A Go Back === ClearCacheCore() === This method will clear all the tiles in the tileCache. ==== Remarks ==== This method will not take effect when the ReadOnly is set to true. Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === DeleteTileCore(Tile) === This method will delete the target tile passed in. ==== Remarks ==== This method will not take effect when the ReadOnly is set to true. Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tile * Type:Tile * Description:The target tile to be deleted. Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === GetHigherScaleTileCore(RectangleShape,Double) === This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:Returns the higher scale(higher zoomLevel) bitmap tile. ==== Parameters ==== tileBoundingBox * Type:RectangleShape * Description:The parameter specifies the current tile bounding box. tileScale * Type:Double * Description:This parameter specifies the current tile scale. Go Back === GetTileCore(Int64,Int64) === This method returns the BitmapTile corresponding to passed in row and column. ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:Returns the BitmapTile corresponding to the passed in row and column. ==== Parameters ==== row * Type:Int64 * Description:The target row for the tile to fetch. column * Type:Int64 * Description:The target column for the tile to fetch. Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === MergeBitmaps(IEnumerable<BitmapTile>,Double) === N/A ==== Remarks ==== N/A Return Value * Return Type:BitmapTile * Description:N/A ==== Parameters ==== tilesToMerge * Type:IEnumerable<BitmapTile> * Description:N/A scale * Type:Double * Description:N/A Go Back === OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:GettingCacheImageBitmapTileCacheEventArgs * Description:N/A Go Back === OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:GottenCacheImageBitmapTileCacheEventArgs * Description:N/A Go Back === SaveTileCore(Tile) === This method will save the target tile passed in, you could override this API to create your own logic. ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== tile * Type:Tile * Description:The target tile to be saved. Go Back ===== Public Properties ===== === CacheDirectory === Gets or sets the cache direcory. ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === CacheId === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === ExpirationTime === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TimeSpan Go Back === ImageFormat === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TileImageFormat Go Back === JpegQuality === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Int16 Go Back === LoadingTileImage === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Bitmap Go Back === NoDataTileImage === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Bitmap Go Back === TileAccessMode === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TileAccessMode Go Back === TileMatrix === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TileMatrix Go Back ===== Protected Properties ===== ===== Public Events ===== === GettingCacheImage === N/A ==== Remarks ==== N/A Event Arguments:GettingCacheImageBitmapTileCacheEventArgs Go Back === GottenCacheImage === N/A ==== Remarks ==== N/A Event Arguments**:GottenCacheImageBitmapTileCacheEventArgs

Go Back

thinkgeo.mapsuite.core.filebitmaptilecache.1442485732.txt.gz · Last modified: 2015/09/17 10:28 by admin