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 class Tile
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¶
IsFromCache¶
Gets or sets the IsFromCache.
public bool IsFromCache { get; set; }
Property Value¶
Content¶
Gets or sets the Content.
public Byte[] Content { get; set; }
Property Value¶
ZoomIndex¶
Gets or sets the ZoomIndex.
public int ZoomIndex { get; set; }
Property Value¶
X¶
Gets or sets the X.
public long X { get; set; }
Property Value¶
Column¶
Gets or sets the Column.
public long Column { get; set; }
Property Value¶
Y¶
Gets or sets the Y.
public long Y { get; set; }
Property Value¶
Row¶
Gets or sets the Row.
public long Row { get; set; }
Property Value¶
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¶
Constructors¶
Tile()¶
This is the default constructor for Tile.
public Tile()
Tile(int, long, long)¶
This is the constructor for Tile by passing the boundingBox and scale.
public Tile(int zoomIndex, long x, long y)
Parameters¶
zoomIndex int
x long
y long
Tile(Byte[], int, long, long)¶
Initializes a new instance of the Tile class.
public Tile(Byte[] content, int zoomIndex, long x, long y)
Parameters¶
content Byte[]
zoomIndex int
x long
y long
Methods¶
GetImage()¶
Returns image.
public GeoImage GetImage()
Returns¶
GeoImage
The result of the operation.
GetFeatures()¶
Returns features from the underlying data source.
public Dictionary<string, Collection<Feature>> GetFeatures()
Returns¶
Dictionary<string, Collection<Feature>>
The result of the operation.
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.