User Tools

Site Tools


thinkgeo.mapsuite.core.tilematrix

This is an old revision of the document!


ThinkGeo.MapSuite.Core.TileMatrix

<!– Class –> This is the base class inherits from Matrix which describe the Matrix system used for Tilling system.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary
Protected MethodTileMatrix String, Double, Int32, Int32, GeographyUnit, PointShape, MatrixReferenceCorner, Int64, Int64 This is the constructor for the class.
Protected MethodTileMatrix String, Double, Int32, Int32, GeographyUnit, RectangleShape, MatrixReferenceCorner This is the constructor for the class.
Protected MethodTileMatrix String, Double, Int32, Int32, GeographyUnit, MatrixReferenceCorner This is the constructor for the class.

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetAllCells Matrix This method returns all the cells of the TileMatrix.
Public MethodGetCell Int64, Int64 Matrix Get the cell by passing a specified row and column.
Public MethodGetCell PointShape Matrix Get the cell by passing a specified point shape location.
Public MethodGetColumnIndex PointShape Matrix Get the column index by passing a specified point shape location.
Public MethodGetContainedCells RectangleShape Matrix This method returns the contained cells of the TileMatrix.
Public MethodGetContainedRowColumnRange RectangleShape Matrix This method returns the RowColumnRange of the TileMatrix contained the passed in extent.
Public MethodGetHashCode Object
Public MethodGetIntersectingCells RectangleShape Matrix This method returns the intersecting cells of the TileMatrix.
Public MethodGetIntersectingRowColumnRange RectangleShape Matrix This method returns the RowColumnRange of the TileMatrix intersects the passed in extent.
Public MethodGetRowIndex PointShape Matrix Get the row index by passing a specified point shape location.
Public MethodGetType Object
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodGetResolutionFromScale Double This method will get resolution from scale and can be overridden.
Protected MethodMemberwiseClone Object
Protected MethodSetMatrix Double, Double Matrix This method sets the Matrix system by passing the cellWidth and cellHeight.
Protected MethodSetMatrix String, Double, Double, RectangleShape, MatrixReferenceCorner Matrix This method sets the Matrix system by passing in each variables.
Protected MethodSetMatrix String, Double, Double, PointShape, MatrixReferenceCorner, Int64, Int64 Matrix This method sets the Matrix system by passing in each variables.

Public Properties

Name Return DeclaringType Summary
Public PropertyBoundingBox RectangleShape Matrix This property gets or sets the BouningBox of the Matrix.
Public PropertyBoundingBoxUnit GeographyUnit This property gets or sets the BoundingBoxUnit for the TileMatrix.
Public PropertyCellHeight Double Matrix This property gets the cell height of the Matrix.
Public PropertyCellWidth Double Matrix This property gets the cell width of the Matrix.
Public PropertyColumnCount Int64 Matrix This property gets the column count of the Matrix.
Public PropertyId String Matrix This property gets or sets the id of the Matrix.
Public PropertyRowCount Int64 Matrix This property gets the row count of the Matrix.
Public PropertyScale Double This property gets or sets the Scale for the TileMatrix.
Public PropertyTileHeight Int32 This property gets or sets the TileHeight for the TileMatrix.
Public PropertyTileWidth Int32 This property gets or sets the TileWidth for the TileMatrix.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

Protected Constructors

TileMatrix(String, Double, Int32, Int32, GeographyUnit, PointShape, MatrixReferenceCorner, Int64, Int64)

This is the constructor for the class.

Overloads

This is the commonly used constructor for the class.

Remarks

If you use this constructor, all other properties are caculated via these given parameters.

Parameters

Name Type Description
id String<!– System.String –> This parameter specifies the id to set the Matrix.
scale Double<!– System.Double –> This parameter specifies the target scale to set the Matrix.
tileWidth Int32<!– System.Int32 –> This parameter specifies the tile width(in decimalDegrees) to set the Matrix.
tileHeight Int32<!– System.Int32 –> This parameter specifies the tile height(in decimalDegrees) to set the Matrix.
boundingBoxUnit GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> This parameter specifies the boundingBox Unit to set the Matrix.
referencePoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> This parameter specifies the reference point location to set the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specifies the reference corner to set the Matrix.
rowCount Int64<!– System.Int64 –> This parameter specifies the row count to set the Matrix.
columnCount Int64<!– System.Int64 –> This parameter specifies the column count to set the Matrix.

Go Back

TileMatrix(String, Double, Int32, Int32, GeographyUnit, RectangleShape, MatrixReferenceCorner)

This is the constructor for the class.

Overloads

This is the commonly used constructor for the class.

Remarks

If you use this constructor, all other properties are caculated via these given parameters.

Parameters

Name Type Description
id String<!– System.String –> This parameter specifies the id to set the Matrix.
scale Double<!– System.Double –> This parameter specifies the target scale to set the Matrix.
tileWidth Int32<!– System.Int32 –> This parameter specifies the tile width(in decimalDegrees) to set the Matrix.
tileHeight Int32<!– System.Int32 –> This parameter specifies the tile height(in decimalDegrees) to set the Matrix.
boundingBoxUnit GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> This parameter specifies the boundingBox Unit to set the Matrix.
boundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies the boundingBox to set the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specifies the reference corner to set the Matrix.

Go Back

TileMatrix(String, Double, Int32, Int32, GeographyUnit, MatrixReferenceCorner)

This is the constructor for the class.

Overloads

This is the commonly used constructor for the class.

Remarks

If you use this constructor, all other properties are caculated via these given parameters.

Parameters

Name Type Description
id String<!– System.String –> This parameter specifies the id to set the Matrix.
scale Double<!– System.Double –> This parameter specifies the target scale to set the Matrix.
tileWidth Int32<!– System.Int32 –> This parameter specifies the tile width(in decimalDegrees) to set the Matrix.
tileHeight Int32<!– System.Int32 –> This parameter specifies the tile height(in decimalDegrees) to set the Matrix.
boundingBoxUnit GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –> This parameter specifies the boundingBox Unit to set the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specifies the reference corner to set the Matrix.

Go Back

Public Methods

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetAllCells()

This method returns all the cells of the TileMatrix.

Return Value

Return Type Description
Collection<TileMatrixCell><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.TileMatrixCell} –> This method returns a collection of TileMatrixCell.

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetCell(Int64, Int64)

Get the cell by passing a specified row and column.

Return Value

Return Type Description
TileMatrixCell<!– ThinkGeo.MapSuite.Core.TileMatrixCell –> The returning cell by specified the row and column.

Parameters

Name Type Description
row Int64<!– System.Int64 –> This parameter specifies the row based on 1.
column Int64<!– System.Int64 –> This parameter specifies the row based on 1.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetCell(PointShape)

Get the cell by passing a specified point shape location.

Return Value

Return Type Description
TileMatrixCell<!– ThinkGeo.MapSuite.Core.TileMatrixCell –> The returning cell by specifing the target point location.

Parameters

Name Type Description
intersectingPoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> The parameter specified the target point location.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetColumnIndex(PointShape)

Get the column index by passing a specified point shape location.

Return Value

Return Type Description
Int64<!– System.Int64 –> The returning column index by specifing the target point location.

Parameters

Name Type Description
intersectingPoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> The parameter specified the target point location.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetContainedCells(RectangleShape)

This method returns the contained cells of the TileMatrix.

Return Value

Return Type Description
Collection<TileMatrixCell><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.TileMatrixCell} –> This method returns a collection of TileMatrixCell which contained in the passed in extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies extent which is used to get the tiles back from.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetContainedRowColumnRange(RectangleShape)

This method returns the RowColumnRange of the TileMatrix contained the passed in extent.

Return Value

Return Type Description
RowColumnRange<!– ThinkGeo.MapSuite.Core.RowColumnRange –> This method returns the RowColumnRange contained the passed in extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies extent which is used to get the tiles back from.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetIntersectingCells(RectangleShape)

This method returns the intersecting cells of the TileMatrix.

Return Value

Return Type Description
Collection<TileMatrixCell><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.Core.TileMatrixCell} –> This method returns a collection of TileMatrixCell which intersecting with the passed in extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies extent which is used to get the tiles back from.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetIntersectingRowColumnRange(RectangleShape)

This method returns the RowColumnRange of the TileMatrix intersects the passed in extent.

Return Value

Return Type Description
RowColumnRange<!– ThinkGeo.MapSuite.Core.RowColumnRange –> This method returns the RowColumnRange intersects the passed in extent.

Parameters

Name Type Description
worldExtent RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies extent which is used to get the tiles back from.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetRowIndex(PointShape)

Get the row index by passing a specified point shape location.

Return Value

Return Type Description
Int64<!– System.Int64 –> The returning row index by specifing the target point location.

Parameters

Name Type Description
intersectingPoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> The parameter specified the target point location.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetResolutionFromScale(Double)

This method will get resolution from scale and can be overridden.

Return Value

Return Type Description
Double<!– System.Double –> Returns the resolution corresponding to the passed in scale.

Parameters

Name Type Description
scale Double<!– System.Double –> This parameter specifies the target scale to get resolution from.

<!– ThinkGeo.MapSuite.Core.TileMatrix –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

SetMatrix(Double, Double)

This method sets the Matrix system by passing the cellWidth and cellHeight.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
cellWidth Double<!– System.Double –> This parameter specifies the cell width(in decimalDegrees) to set the Matrix.
cellHeight Double<!– System.Double –> This parameter specifies the cell height(in decimalDegrees) to set the Matrix.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

SetMatrix(String, Double, Double, RectangleShape, MatrixReferenceCorner)

This method sets the Matrix system by passing in each variables.

Remarks

Accroding to the these given parameters, the referencePoint, rowCount, columnCount can be caculated.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
id String<!– System.String –> This parameter specifies the id to set the Matrix.
cellWidth Double<!– System.Double –> This parameter specifies the cell width(in decimalDegrees) to set the Matrix.
cellHeight Double<!– System.Double –> This parameter specifies the cell height(in decimalDegrees) to set the Matrix.
boundingBox RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –> This parameter specifies the boundingBox to set the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specifies the reference corner to set the Matrix.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

SetMatrix(String, Double, Double, PointShape, MatrixReferenceCorner, Int64, Int64)

This method sets the Matrix system by passing in each variables.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
id String<!– System.String –> This parameter specifies the id to set the Matrix.
cellWidth Double<!– System.Double –> This parameter specifies the cell width(in decimalDegrees) to set the Matrix.
cellHeight Double<!– System.Double –> This parameter specifies the cell height(in decimalDegrees) to set the Matrix.
referencePoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> This parameter specifies the reference Point to set the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specifies the reference corner to set the Matrix.
rowCount Int64<!– System.Int64 –> This parameter specifies the row count to set the Matrix.
columnCount Int64<!– System.Int64 –> This parameter specifies the column count to set the Matrix.

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

Public Properties

BoundingBox

This property gets or sets the BouningBox of the Matrix.

Remarks

The bounding box of the Matrix is related with the referencePoint, cellWidth, cellHeight and the rowCount and columnCount.

Return Value

Return Type
RectangleShape<!– ThinkGeo.MapSuite.Core.RectangleShape –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

BoundingBoxUnit

This property gets or sets the BoundingBoxUnit for the TileMatrix.

Remarks

When set a different BoundingBoxUnit, it will recaculate the parameters in TileMatrix. Also, The default boundingBox value depends on the BoundingBoxUint.

Return Value

Return Type
GeographyUnit<!– ThinkGeo.MapSuite.Core.GeographyUnit –>

<!– ThinkGeo.MapSuite.Core.TileMatrix –> Go Back

CellHeight

This property gets the cell height of the Matrix.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

CellWidth

This property gets the cell width of the Matrix.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

ColumnCount

This property gets the column count of the Matrix.

Return Value

Return Type
Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

Id

This property gets or sets the id of the Matrix.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

RowCount

This property gets the row count of the Matrix.

Return Value

Return Type
Int64<!– System.Int64 –>

<!– ThinkGeo.MapSuite.Core.Matrix –> Go Back

Scale

This property gets or sets the Scale for the TileMatrix.

Remarks

When set a different Scale, it will recaculate the parameters in TileMatrix.

Return Value

Return Type
Double<!– System.Double –>

<!– ThinkGeo.MapSuite.Core.TileMatrix –> Go Back

TileHeight

This property gets or sets the TileHeight for the TileMatrix.

Remarks

When set a different TileHeight, it will recaculate the parameters in TileMatrix.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.Core.TileMatrix –> Go Back

TileWidth

This property gets or sets the TileWidth for the TileMatrix.

Remarks

When set a different TileWidth, it will recaculate the parameters in TileMatrix.

Return Value

Return Type
Int32<!– System.Int32 –>

<!– ThinkGeo.MapSuite.Core.TileMatrix –> Go Back

Protected Properties

Public Events

thinkgeo.mapsuite.core.tilematrix.1440040130.txt.gz · Last modified: 2015/09/17 10:41 (external edit)