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()¶
Initializes a new instance of the TileMatrix class.
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, int, int, 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 int
This parameter specifies the tileView width(in decimalDegrees) to set the Matrix.
tileHeight int
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¶
LB4=(double)¶
internal void LB4=(double currentScale)
Parameters¶
currentScale double
Returns¶
GetExtent(long, long)¶
Returns extent for the specified parameters.
public RectangleShape GetExtent(long x, long y)
Parameters¶
x long
The x-coordinate, in pixels.
y long
The y-coordinate, in pixels.
Returns¶
RectangleShape
The result of the operation.
GetDefaultMatrix(double, int, int, GeographyUnit)¶
Returns default matrix for the specified parameters.
public static TileMatrix GetDefaultMatrix(double scale, int tileWidth, int tileHeight, GeographyUnit unit)
Parameters¶
scale double
The scale factor to apply.
tileWidth int
The tile width.
tileHeight int
The tile height.
unit GeographyUnit
The unit.
Returns¶
TileMatrix
The result of the operation.
GetRowColumnRangeCore(RectangleShape, bool)¶
Provides the overridable implementation that returns row column range from the underlying data source.
protected RowColumnRange GetRowColumnRangeCore(RectangleShape worldExtent, bool isContains)
Parameters¶
worldExtent RectangleShape
The world extent represented by the canvas during the drawing session.
isContains bool
The is contains.
Returns¶
RowColumnRange
The result of the operation.