TileMatrix¶
Namespace: ThinkGeo.Core
This is the base class inherits from Matrix which describe the Matrix system used for Tilling system.
public class TileMatrix : Matrix
Inheritance Object → Matrix → TileMatrix
Properties¶
Scale¶
This property gets or sets the Scale for the TileMatrix.
public double Scale { get; set; }
Property Value¶
Remarks:
When set a different Scale, it will recalculate the parameters in TileMatrix.
TileWidth¶
This property gets or sets the TileWidth for the TileMatrix.
public int TileWidth { get; set; }
Property Value¶
Remarks:
When set a different TileWidth, it will recalculate the parameters in TileMatrix.
TileHeight¶
This property gets or sets the TileHeight for the TileMatrix.
public int TileHeight { get; set; }
Property Value¶
Remarks:
When set a different TileHeight, it will recalculate the parameters in TileMatrix.
GeographyUnit¶
This property gets or sets the BoundingBoxUnit for the TileMatrix.
public GeographyUnit GeographyUnit { get; set; }
Property Value¶
Remarks:
When set a different BoundingBoxUnit, it will recalculate the parameters in TileMatrix. Also, The default boundingBox value depends on the BoundingBoxUint.
CellWidth¶
This property gets the cell width of the Matrix.
public double CellWidth { get; set; }
Property Value¶
CellHeight¶
This property gets the cell height of the Matrix.
public double CellHeight { get; set; }
Property Value¶
BoundingBox¶
This property gets or sets the BoundingBox of the Matrix.
public RectangleShape BoundingBox { get; set; }
Property Value¶
Remarks:
The bounding box of the Matrix is related with the referencePoint, cellWidth, cellHeight and the rowCount and columnCount.
Id¶
This property gets or sets the id of the Matrix.
public string Id { get; set; }
Property Value¶
Constructors¶
TileMatrix()¶
public TileMatrix()
TileMatrix(Double)¶
This is the constructor by passing the scale.
public TileMatrix(double scale)
Parameters¶
scale Double
This parameter specifies the target scale to set the Matrix.
Remarks:
If you use this constructor, all other properties are used their default values.
TileMatrix(Double, RectangleShape, GeographyUnit)¶
This is the constructor by passing the scale.
public TileMatrix(double scale, RectangleShape boundingBox, GeographyUnit geographyUnit)
Parameters¶
scale Double
This parameter specifies the target scale to set the Matrix.
boundingBox RectangleShape
The bounding box of the matrix
geographyUnit GeographyUnit
This parameter specifies the boundingBox Unit to set the Matrix.
Remarks:
If you use this constructor, all other properties are used their default values.
TileMatrix(Double, Int32, Int32, RectangleShape, GeographyUnit)¶
This is the constructor for the class.
public TileMatrix(double scale, int tileWidth, int tileHeight, RectangleShape boundingBox, GeographyUnit geographyUnit)
Parameters¶
scale Double
This parameter specifies the target scale to set the Matrix.
tileWidth Int32
This parameter specifies the tileView width(in decimalDegrees) to set the Matrix.
tileHeight Int32
This parameter specifies the tileView height(in decimalDegrees) to set the Matrix.
boundingBox RectangleShape
The BoundingBox of the Matrix.
geographyUnit GeographyUnit
This parameter specifies the boundingBox Unit to set the Matrix.
Remarks:
If you use this constructor, all other properties are calculated via these given parameters.
Methods¶
CalibrateByScale(Double)¶
internal void CalibrateByScale(double currentScale)
Parameters¶
currentScale Double
GetExtent(Int64, Int64)¶
public RectangleShape GetExtent(long x, long y)
Parameters¶
x Int64
y Int64
Returns¶
GetDefaultMatrix(Double, Int32, Int32, GeographyUnit)¶
public static TileMatrix GetDefaultMatrix(double scale, int tileWidth, int tileHeight, GeographyUnit unit)
Parameters¶
scale Double
tileWidth Int32
tileHeight Int32
unit GeographyUnit
Returns¶
GetRowColumnRangeCore(RectangleShape, Boolean)¶
protected RowColumnRange GetRowColumnRangeCore(RectangleShape worldExtent, bool isContains)
Parameters¶
worldExtent RectangleShape
isContains Boolean