<< Click to Display Table of Contents >>

SuperGIS Server JavaScript API

 

new sg.geometry.MultiPart()

 

 

Description

建立一個 multi-part 物件

 

Position

Geometry.js

 

 

Properties

 

Properties

Type

Description

extent

sg.geometry.Extent

幾何資料範圍

type

String

幾何資料的類型

parts

Array.<sg.geometry.Geometry>

幾何資料陣列

 

 

Methods

 

Methods

Type

Description

addPart(part)

sg.geometry.Geometry

加入幾何資料到集合裡

(點線面皆可加入)

Name

Type

Description

part

sg.geometry.Geometry

幾何資料

getExtent()

Returns:

sg.geometry.Extent

取得幾何資料範圍

Returns:

Type

Description

sg.geometry.Extent

幾何範圍

update(updatePart)

sg.geometry.MultiPart

更新multi-part幾何資料

(更新後,舊資料會被新資料取代)

Name

Type

Description

updatepart

sg.geometry.MultiPart

multi-part幾何物件資料

Clone()        

Returns:

sg.geometry.MultiPart

複製multi-part幾何物件並回傳

Returns:

Type

Description

sg.geometry.MultiPart

multi-part幾何物件

 

transform(a,b,c,d,e,f,g,h,i)

Nmber

透過轉換參數,對multi-part幾何物件進行座標轉換

Name

Type

Description

a,b,c,d,e,f,g,h,i

Nmber

轉換矩陣元素,轉換矩陣M=[[a, b, c], [d, e, f], [g, h, i]]

forEachVertex(callback)

function

透過callback方法,回傳線段幾何物件的所有頂點資料

callback(context)

{

 //回傳內容,參考Point linestring Polygon

 //的forEachVertex(callback)

 //說明

}

 

 


©2015 Supergeo Technologies Inc.