User Tools

Site Tools


thinkgeo.mapsuite.portablecore.bitmaptilecache

ThinkGeo.MapSuite.Core.BitmapTileCache

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

This is the base class for BitmapTileCache system which inherits from TileCache class.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

BitmapTileCache(String,TileImageFormat,TileMatrix)

  • This is the constructor of the class.
Remarks
  • N/A
Parameters
  • cacheId
    • Type:String
    • Description:This is the cache identifier which marks its difference with other TileCache.
  • imageFormat
    • Description:This is the imageFormate showing what kind of image we are trying to save.
  • tileMatrix
    • Description:This is the tile matrix system which is used for caculating tiles.

Public Methods

GetTile(RectangleShape)

  • This method returns the BitmapTile corresponding to the tile bounding box passed in.
Remarks
  • N/A
Return Value
  • Description:Returns the BitmapTile corresponding to the passed in boundingBox.
Parameters
  • tileBoundingBox
    • Description:The target boundingBox for the tile to fetch.

GetTile(Int64,Int64)

  • This method returns the BitmapTile corresponding to passed in row and column.
Remarks
  • N/A
Return Value
  • 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.

GetTiles(RectangleShape)

  • This method returns all the BitmapTiles within the passed in world extent, some of which may not has bitmap.
Remarks
  • N/A
Return Value
  • Type:Collection<BitmapTile>
  • Description:Returns a collection of BitmapTiles within the passed in worldExtent.
Parameters
  • worldExtent
    • Description:The target worldExtent will be used to fetch all the BitmapTiles from.

GetHigherScaleTile(RectangleShape,Double)

  • This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.
Remarks
  • N/A
Return Value
  • Description:Returns the higher scale(higher zoomLevel) bitmap tile.
Parameters
  • tileBoundingBox
    • Description:The parameter specifies the current tile bounding box.
  • tileScale
    • Type:Double
    • Description:This parameter specifies the current tile scale.

SaveTile(Tile)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

SaveTiles(GeoImage,RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

DeleteTiles(RectangleShape)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

DeleteTile(Tile)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

ClearCache()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • N/A
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

GetTileCore(Int64,Int64)

  • This abstract method returns the BitmapTile corresponding to passed in row and column. Each concrete TileCache need to implement this logic to get tile from a row and column.
Remarks
  • N/A
Return Value
  • 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.

GetHigherScaleTileCore(RectangleShape,Double)

  • This method is virtual and can be overriden by its sub classes. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.
Remarks
  • N/A
Return Value
  • Description:Returns the higher scale(higher zoomLevel) bitmap tile.
Parameters
  • tileBoundingBox
    • Description:The parameter specifies the current tile bounding box.
  • tileScale
    • Type:Double
    • Description:This parameter specifies the current tile scale.

MergeBitmaps(IEnumerable<BitmapTile>,Double)

  • This method will merege the passed in bitmap tiles into a larege bitmap tile.
Remarks
  • N/A
Return Value
  • Description:Returns a merged bitmap tile.
Parameters
  • tilesToMerge
    • Type:IEnumerable<BitmapTile>
    • Description:The collection of tiles to be mereged.
  • scale
    • Type:Double
    • Description:The target scale for result mereged bitmap tile.

OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

ClearCacheCore()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

SaveTileCore(Tile)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

DeleteTileCore(Tile)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

Finalize()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • N/A
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

TileMatrix

  • N/A
Remarks
  • N/A
Return Value

TileAccessMode

  • N/A
Remarks
  • N/A
Return Value

NoDataTileImage

  • N/A
Remarks
  • N/A
Return Value

LoadingTileImage

  • N/A
Remarks
  • N/A
Return Value

ImageFormat

  • N/A
Remarks
  • N/A
Return Value

JpegQuality

  • N/A
Remarks
  • N/A
Return Value
  • Type:Int16

CacheId

  • N/A
Remarks
  • N/A
Return Value
  • Type:String

Protected Properties

Public Events

GottenCacheImage

  • N/A
Remarks
  • N/A

Event Arguments:GottenCacheImageBitmapTileCacheEventArgs

GettingCacheImage

  • N/A
Remarks
thinkgeo.mapsuite.portablecore.bitmaptilecache.txt · Last modified: 2017/03/16 21:59 (external edit)