User Tools

Site Tools


thinkgeo.mapsuite.core.matrix

This is an old revision of the document!


ThinkGeo.MapSuite.Core.Matrix

<!– Class –> This class represents a base Matrix which encapsulate the tile caculation logics.

Remarks

This class is abstract and designed to be inherited to create your own TileMatrix. The derived TileMatrix classes are typically used on a TileMatrixSet.

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary
Protected MethodMatrix This method is the default protected constructor.
Protected MethodMatrix String, Double, Double, RectangleShape, MatrixReferenceCorner This method is the default protected constructor.
Protected MethodMatrix String, Double, Double, PointShape, MatrixReferenceCorner, Int64, Int64 This method is the default protected constructor.

Public Methods

Name Parameters DeclaringType Summary
Public MethodEquals Object Object
Public MethodGetAllCells This method returns all the cells of the TileMatrix.
Public MethodGetCell Int64, Int64 Get the cell by passing a specified row and column.
Public MethodGetCell PointShape Get the cell by passing a specified point shape location.
Public MethodGetColumnIndex PointShape Get the column index by passing a specified point shape location.
Public MethodGetContainedCells RectangleShape This method returns the contained cells of the TileMatrix.
Public MethodGetContainedRowColumnRange RectangleShape This method returns the RowColumnRange of the TileMatrix contained the passed in extent.
Public MethodGetHashCode Object
Public MethodGetIntersectingCells RectangleShape This method returns the intersecting cells of the TileMatrix.
Public MethodGetIntersectingRowColumnRange RectangleShape This method returns the RowColumnRange of the TileMatrix intersects the passed in extent.
Public MethodGetRowIndex PointShape 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 MethodMemberwiseClone Object
Protected MethodSetMatrix String, Double, Double, RectangleShape, MatrixReferenceCorner This method sets the Matrix system by passing in each variables.
Protected MethodSetMatrix String, Double, Double, PointShape, MatrixReferenceCorner, Int64, Int64 This method sets the Matrix system by passing in each variables.
Protected MethodSetMatrix Double, Double This method sets the Matrix system by passing the cellWidth and cellHeight.

Public Properties

Name Return DeclaringType Summary
Public PropertyBoundingBox RectangleShape This property gets or sets the BouningBox of the Matrix.
Public PropertyCellHeight Double This property gets the cell height of the Matrix.
Public PropertyCellWidth Double This property gets the cell width of the Matrix.
Public PropertyColumnCount Int64 This property gets the column count of the Matrix.
Public PropertyId String This property gets or sets the id of the Matrix.
Public PropertyRowCount Int64 This property gets the row count of the Matrix.

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

Protected Constructors

Matrix()

This method is the default protected constructor.

Remarks

If you use this constructor, you have to set the properties correctly before use it.

Parameters

Name Type Description

Go Back

Matrix(String, Double, Double, RectangleShape, MatrixReferenceCorner)

This method is the default protected constructor.

Parameters

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

Go Back

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

This method is the default protected constructor.

Parameters

Name Type Description
id String<!– System.String –> This parameter specified the id of the Matrix.
cellWidth Double<!– System.Double –> This parameter specified the cell width(in DecimalDegrees) of the Matrix.
cellHeight Double<!– System.Double –> This parameter specified the cell height(in DecimalDegrees) of the Matrix.
referencePoint PointShape<!– ThinkGeo.MapSuite.Core.PointShape –> This parameter specified the cacluation reference point of the Matrix.
referenceCorner MatrixReferenceCorner<!– ThinkGeo.MapSuite.Core.MatrixReferenceCorner –> This parameter specified the cacluation reference corner of the Matrix.
rowCount Int64<!– System.Int64 –> This parameter specified the row count of the Matrix.
columnCount Int64<!– System.Int64 –> This parameter specified the column count of 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

MemberwiseClone()

Return Value

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

Parameters

Name Type Description

<!– System.Object –> 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

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

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

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

Protected Properties

Public Events

thinkgeo.mapsuite.core.matrix.1440040129.txt.gz · Last modified: 2015/09/17 10:35 (external edit)