User Tools

Site Tools


thinkgeo.mapsuite.portablecore.tilecache

ThinkGeo.MapSuite.Core.TileCache

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 TileCache system.

Inheritance Hierarchy

Members Summary

Public Constructors

Protected Constructors

TileCache(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

SaveTile(Tile)

  • This method will save the target tile passed in.
Remarks
  • This method will not take effect when the ReadOnly is set to true.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:The target tile to be saved.

SaveTiles(GeoImage,RectangleShape)

  • This method will save the bitmap with its extent attached into tiles.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • bitmap
    • Type:GeoImage
    • Description:The target bitmap to be saved into tiles.
  • bitmapExtent

DeleteTiles(RectangleShape)

  • This method will delete the tiles within the passed in worldExtent.
Remarks
  • N/A
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • worldExtent
    • Description:The target extent to delete all tiles within it.

DeleteTile(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
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:The target tile to be deleted.

ClearCache()

  • 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
  • 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

ClearCacheCore()

  • This abstract method will clear all the tiles in the tileCache, for each sub TileCache class must implement this method.
Remarks
  • This method will not take effect when the ReadOnly is set to true.
Return Value
  • Type:Void
  • Description:N/A
Parameters

SaveTileCore(Tile)

  • This abstract method will save the target tile passed in, for each sub TileCache class must implement this method.
Remarks
  • This method will not take effect when the ReadOnly is set to true.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:The target tile to be saved.

DeleteTileCore(Tile)

  • This abstract method will delete the target tile passed in, for each sub TileCache class must implement this method.
Remarks
  • This method will not take effect when the ReadOnly is set to true.
Return Value
  • Type:Void
  • Description:N/A
Parameters
  • tile
    • Type:Tile
    • Description:The target tile to be deleted.

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

  • Gets or sets the TileMatrix which is used in caculation for tiles.
Remarks
  • N/A
Return Value

TileAccessMode

  • Gets or sets the Mode for the TileCache access the tiles. The Default value is ReadAddDelete
Remarks
  • If you want it to take effect, you need set the ReadOnly property false.
Return Value

NoDataTileImage

  • This property returns back a preset image showing the tile data is missing.
Remarks
  • N/A
Return Value

LoadingTileImage

  • This property returns back a preset image showing the Tile is loading.
Remarks
  • N/A
Return Value

ImageFormat

  • Gets or sets the tile image format.
Remarks
  • N/A
Return Value

JpegQuality

  • Gets or sets the Jpeg quality , this property only take effects when setting the ImageFormat to Jpeg.
Remarks
  • N/A
Return Value
  • Type:Int16

CacheId

  • Gets or sets the id of the TileCache.
Remarks
  • N/A
Return Value
  • Type:String

Protected Properties

Public Events

thinkgeo.mapsuite.portablecore.tilecache.txt · Last modified: 2017/03/16 21:59 (external edit)