User Tools

Site Tools


thinkgeo.mapsuite.desktopedition.sessionfilebitmaptilecache

ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache

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 class is a concrete class that inherits from FileBitmapTileCache. In this class, the tiles will be marked as obsolete when you call the ClearCache method and will be deleted in a background thread.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.TileCache
      • ThinkGeo.MapSuite.Core.BitmapTileCache
        • ThinkGeo.MapSuite.Core.FileBitmapTileCache
          • ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache

Members Summary

Public Constructors

SessionFileBitmapTileCache()

  • This is the default constructor.
Remarks
  • If you use this constructor, you must set the properties manually.
Parameters

SessionFileBitmapTileCache(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 directory of the tile cache.

SessionFileBitmapTileCache(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 directory of the tile cache.
  • cacheId
    • Type:String
    • Description:This parameter specifies the cache ID of the tile cache.

SessionFileBitmapTileCache(String,String,TileImageFormat,TileMatrix)

  • This is the constructor with all the parameters needed passed in.
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#SessionFileBitmapTileCache.28String.2C_String.2C_TileImageFormat.2C_TileMatrix.29
Parameters
  • cacheDirectory
    • Type:String
    • Description:This parameter specifies the directory of the tile cache.
  • cacheId
    • Type:String
    • Description:This parameter specifies the cache IF of the tile cache.
  • imageFormat
    • Description:This parameter specifies the image format of the tile cahce.
  • tileMatrix
    • Description:This parameter specifies the tile matrix of the tile cache.

Protected Constructors

Public Methods

ClearCache(TimeSpan)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tileExpiration
    • Type:TimeSpan
    • Description:N/A

ClearCache(Double)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • maxSizeInMegabytes
    • Type:Double
    • Description:N/A

ClearCache(TimeSpan,Double)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tileExpiration
    • Type:TimeSpan
    • Description:N/A
  • maxSizeInMegabytes
    • Type:Double
    • Description:N/A

GetTileImageFileNames(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTileImageFileNames.28RectangleShape.29
Return Value
  • Type:Collection<String>
  • Description:N/A
Parameters

GetTileImageFileName(Int64,Int64)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTileImageFileName.28Int64.2C_Int64.29
Return Value
  • Type:String
  • Description:N/A
Parameters
  • row
    • Type:Int64
    • Description:N/A
  • column
    • Type:Int64
    • Description:N/A

GetTile(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTile.28RectangleShape.29
Return Value
Parameters

GetTile(Int64,Int64)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTile.28Int64.2C_Int64.29
Return Value
Parameters
  • row
    • Type:Int64
    • Description:N/A
  • column
    • Type:Int64
    • Description:N/A

GetTiles(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTiles.28RectangleShape.29
Return Value
Parameters

GetHigherScaleTile(RectangleShape,Double)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetHigherScaleTile.28RectangleShape.2C_Double.29
Return Value
Parameters
  • tileScale
    • Type:Double
    • Description:N/A

SaveTile(Tile)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#SaveTile.28Tile.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

SaveTiles(Bitmap,RectangleShape,Boolean)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bitmap
    • Type:Bitmap
    • Description:N/A
  • saveContainedCellsOnly
    • Type:Boolean
    • Description:N/A

SaveTiles(Bitmap,RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#SaveTiles.28Bitmap.2C_RectangleShape.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bitmap
    • Type:Bitmap
    • Description:N/A

DeleteTiles(RectangleShape)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#DeleteTiles.28RectangleShape.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

DeleteTile(Tile)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#DeleteTile.28Tile.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

ClearCache()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#ClearCache.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

ToString()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#ToString.28.29
Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#Equals.28Object.29
Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetHashCode.28.29
Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetType.28.29
Return Value
  • Type:Type
  • Description:N/A
Parameters

Protected Methods

ClearCacheCore()

  • This method will create a new cacheId for the SessionFileBitmapTileCache and mark the original one as obsolete. The original will then be deleted in a background thread.
Remarks
  • This method will not take effect when ReadOnly is set to true.
Return Value
  • Type:Void
  • Description:N/A
Parameters

GetTileCore(Int64,Int64)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetTileCore.28Int64.2C_Int64.29
Return Value
Parameters
  • row
    • Type:Int64
    • Description:N/A
  • column
    • Type:Int64
    • Description:N/A

SaveTileCore(Tile)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#SaveTileCore.28Tile.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

DeleteTileCore(Tile)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#DeleteTileCore.28Tile.29
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:N/A

8xU=(String)

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

9BU=(Bitmap)

  • N/A
Remarks
  • N/A
Return Value
  • Type:Byte[]
  • Description:N/A
Parameters
  • bitmap
    • Type:Bitmap
    • Description:N/A

GetHigherScaleTileCore(RectangleShape,Double)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#GetHigherScaleTileCore.28RectangleShape.2C_Double.29
Return Value
Parameters
  • tileScale
    • Type:Double
    • Description:N/A

MergeBitmaps(IEnumerable<BitmapTile>,Double)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:
Return Value
Parameters
  • tilesToMerge
  • scale
    • Type:Double
    • Description:N/A

OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#OnGottenCacheImage.28GottenCacheImageBitmapTileCacheEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs)

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#OnGettingCacheImage.28GettingCacheImageBitmapTileCacheEventArgs.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

Finalize()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#Finalize.28.29
Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

  • N/A
Remarks
  • For the most updated Info for this topic, please check it here:http:wiki.thinkgeo.com/wiki/ThinkGeo.MapSuite.DesktopEdition.SessionFileBitmapTileCache#MemberwiseClone.28.29
Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

CacheDirectory

  • N/A
Remarks
Return Value
  • Type:TimeSpan

TileMatrix

  • N/A
Remarks
Return Value

NoDataTileImage

  • N/A
Remarks
Return Value
  • Type:Bitmap

ImageFormat

  • N/A
Remarks
Return Value
  • Type:Int16

CacheId

  • N/A
Remarks

Event Arguments:GottenCacheImageBitmapTileCacheEventArgs

GettingCacheImage

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