Skip to content

Tile

Namespace: ThinkGeo.Core

This is the base class which describle the Tile class. Tile concept is used as a rectangle image which will be saved in Memory or Hard disk to enhance the performance.

The Tile cache system is very popular in many GIS products including the GoogleMaps, VE Maps etc, the Tile can be considered a small subset used in the TileCache system.

public abstract class Tile

Inheritance ObjectTile

Remarks:

The Tile is the lowest level Tile in the Tile hierarchy. Directly inherited from Tile are BitmapTile, NativeImageTile. The methods and properties on Tile are the lowest common denominator for all the various kinds of Tiles. It marked abstract and is designed only to be inherited from.

Properties

ZoomIndex

public int ZoomIndex { get; set; }

Property Value

Int32

Column

public long Column { get; set; }

Property Value

Int64

Row

public long Row { get; set; }

Property Value

Int64

CacheId

The CacheId of the Tile. This is for avoiding the issue that Tile A is saved to Tile B's Cache in a multi-threading environment.

public string CacheId { get; set; }

Property Value

String

Constructors

Tile()

This is the default constructor for Tile.

public Tile()

Tile(Int32, Int64, Int64)

This is the constructor for Tile by passing the boundingBox and scale.

public Tile(int zoomIndex, long column, long row)

Parameters

zoomIndex Int32

column Int64

row Int64

Methods

CloneDeep()

This method shows the way to deep clone a Tile object.

public Tile CloneDeep()

Returns

Tile
This method returns the cloned Tile object.

Remarks:

As this is a concrete public method that wraps a Core method, In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this,please contact our support team as we would be happy to work with you on extending our framework.

CloneDeepCore()

This method shows the way to override deep clone a Tile object.

protected Tile CloneDeepCore()

Returns

Tile
This method returns the cloned Tile object.

Remarks:

As this is a concrete public method that wraps a Core method, In this way, we leave our framework open on our end, but also allow you the developer to extend our logic to suit your needs. If you have questions about this,please contact our support team as we would be happy to work with you on extending our framework.