Class: CMatrixSet

CMatrixSet

矩陣資訊集合

new CMatrixSet()

common/PilotGaea-wmts.js, line 87

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 148

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

Name Type Description
epsgNum number

EPSG代碼

Returns:
Type Description
CMatrixSet 矩陣資訊

staticCMatrixSet.MakeByPatternName(patternName){CMatrixSet|null}

common/PilotGaea-wmts.js, line 208

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

Name Type Description
patternName string

服務名稱

Returns:
Type Description
CMatrixSet | null 矩陣資訊

staticCMatrixSet.MakeByWMTSParseInfo(layerInfo){CMatrixSet|null}

common/PilotGaea-wmts.js, line 261

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

Name Type Description
layerInfo CWMTSParse.CLayerInfo

圖層來源資訊

Returns:
Type Description
CMatrixSet | null 矩陣資訊

Add(id, lt_Point, matrixSize, dim, resolution)

common/PilotGaea-wmts.js, line 318

新增一層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 279

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

Name Type Description
matrixSet CMatrixSet

來源

GetAt(index)

common/PilotGaea-wmts.js, line 325

取得指定索引的MatrixInfo

Name Type Description
index number

索引

RemoveAll()

common/PilotGaea-wmts.js, line 302

移除加入的全部MatrixInfo

RemoveAt(index)

common/PilotGaea-wmts.js, line 292

移除指定索引的MatrixInfo

Name Type Description
index number

索引

SetAt(index, obj)

common/PilotGaea-wmts.js, line 333

更新指定索引的MatrixInfo

Name Type Description
index number

索引

obj CMatrixInfo

MatrixInfo