Table of Contents

Class TileMatrix

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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

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, 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.

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.

Properties

GeographyUnit

This property gets or sets the BoundingBoxUnit for the TileMatrix.

public GeographyUnit GeographyUnit { get; }

Property Value

GeographyUnit

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

double

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

int

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

int

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

scale double
tileWidth int
tileHeight int
unit GeographyUnit

Returns

TileMatrix

GetRowColumnRangeCore(RectangleShape, bool)

protected override RowColumnRange GetRowColumnRangeCore(RectangleShape worldExtent, bool isContains)

Parameters

worldExtent RectangleShape
isContains bool

Returns

RowColumnRange