Class: CMatrixSet

CMatrixSet

new CMatrixSet()

common/PilotGaea-wmts.js, line 83

矩陣資訊集合

Members

readonlyBoundary

矩陣資訊邊界

Properties:
Name Type Description
Boundary GeoBoundary

矩陣資訊邊界

readonlylength

矩陣資訊總數

Properties:
Name Type Description
length Number

矩陣資訊總數

readonlyMaxResolution

最大解析度

Properties:
Name Type Description
MaxResolution Number

最大解析度

readonlyMinResolution

最小解析度

Properties:
Name Type Description
MinResolution Number

最小解析度

Methods

staticCMatrixSet.MakeByEPSG(EPSGNum){CMatrixSet}

common/PilotGaea-wmts.js, line 163

透過EPSG產生對應的矩陣資訊

Name Type Description
EPSGNum number

EPSG代碼

Returns:
Type Description
CMatrixSet 矩陣資訊

staticCMatrixSet.MakeByPatternName(PatternName){CMatrixSet}

common/PilotGaea-wmts.js, line 226

透過服務名稱產生對應的矩陣資訊

Name Type Description
PatternName string

服務名稱

Returns:
Type Description
CMatrixSet 矩陣資訊

staticCMatrixSet.MakeByWMTSParseInfo(LayerInfo){CMatrixSet}

common/PilotGaea-wmts.js, line 280

透過圖層來源資訊資訊產生對應的矩陣資訊

Name Type Description
LayerInfo CWMTSParse.CLayerInfo

圖層來源資訊

Returns:
Type Description
CMatrixSet 矩陣資訊

Add(Id, LT_Point, MatrixSize, Dim, Resolution)

common/PilotGaea-wmts.js, line 325

新增一層MatrixInfo

Name Type Description
Id string

Id

LT_Point GeoPoint

左上角點座標

MatrixSize CSize

水平與垂直的磁磚數量

Dim number

每個磁磚的大小(pixel),一般都為256

Resolution number

解析度(=ScaleDenominator*0.00028)

Example

var m = new CMatrixSet();
m.Add("0",new GeoPoint(-5372600.0,1.00011E7),new CSize(14,12),256,1.181177957593862E70.00028);
m.Add("1",new GeoPoint(-5372600.0,1.00011E7),new CSize(18,15),256,9449423.660750896
0.00028);
m.Add("2",new GeoPoint(-5372600.0,1.00011E7),new CSize(35,30),256,4724711.830375448*0.00028);

CopyFrom(MatrixSet)

common/PilotGaea-wmts.js, line 145

把其他的CMatrixSet複製到自身裡面

Name Type Description
MatrixSet CMatrixSet

來源

GetAt(Index)

common/PilotGaea-wmts.js, line 333

取得指定索引的MatrixInfo

Name Type Description
Index number

索引

RemoveAll()

common/PilotGaea-wmts.js, line 308

移除加入的全部MatrixInfo

RemoveAt(Index)

common/PilotGaea-wmts.js, line 299

移除指定索引的MatrixInfo

Name Type Description
Index number

索引

SetAt(Index, Obj)

common/PilotGaea-wmts.js, line 342

更新指定索引的MatrixInfo

Name Type Description
Index number

索引

Obj CMatrixInfo

MatrixInfo