Class TileMatrix
This is the base class inherits from Matrix which describe the Matrix system used for Tilling system.
public class TileMatrix : Matrix
- Inheritance
-
TileMatrix
- Inherited Members
Constructors
TileMatrix()
public TileMatrix()
TileMatrix(double)
This is the constructor by passing the scale.
public TileMatrix(double scale)
Parameters
scaledoubleThis 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, int, int, RectangleShape, GeographyUnit)
This is the constructor for the class.
public TileMatrix(double scale, int tileWidth, int tileHeight, RectangleShape boundingBox, GeographyUnit geographyUnit)
Parameters
scaledoubleThis parameter specifies the target scale to set the Matrix.
tileWidthintThis parameter specifies the tileView width(in decimalDegrees) to set the Matrix.
tileHeightintThis parameter specifies the tileView height(in decimalDegrees) to set the Matrix.
boundingBoxRectangleShapeThe BoundingBox of the Matrix.
geographyUnitGeographyUnitThis parameter specifies the boundingBox Unit to set the Matrix.
Remarks
If you use this constructor, all other properties are calculated via these given parameters.
TileMatrix(double, RectangleShape, GeographyUnit)
This is the constructor by passing the scale.
public TileMatrix(double scale, RectangleShape boundingBox, GeographyUnit geographyUnit)
Parameters
scaledoubleThis parameter specifies the target scale to set the Matrix.
boundingBoxRectangleShapeThe bounding box of the matrix
geographyUnitGeographyUnitThis parameter specifies the boundingBox Unit to set the Matrix.
Remarks
If you use this constructor, all other properties are used their default values.
Properties
GeographyUnit
This property gets or sets the BoundingBoxUnit for the TileMatrix.
public GeographyUnit GeographyUnit { get; }
Property Value
Remarks
When set a different BoundingBoxUnit, it will recalculate the parameters in TileMatrix. Also, The default boundingBox value depends on the BoundingBoxUint.
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.
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.
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.
Methods
GetDefaultMatrix(double, int, int, GeographyUnit)
public static TileMatrix GetDefaultMatrix(double scale, int tileWidth, int tileHeight, GeographyUnit unit)
Parameters
scaledoubletileWidthinttileHeightintunitGeographyUnit
Returns
GetRowColumnRangeCore(RectangleShape, bool)
protected override RowColumnRange GetRowColumnRangeCore(RectangleShape worldExtent, bool isContains)
Parameters
worldExtentRectangleShapeisContainsbool