# Class: GeoPolygons

## GeoPolygons()

#### new GeoPolygons()

Source:
  - GeoPolygons.js, line 12

### Methods

#### (async, static) append(reg) → {Promise}

添加多边形

##### Parameters:

Name | Type | Description
--- | --- | ---
`reg` |  | 待添加的多边形

Source:
  - GeoPolygons.js, line 122

##### Returns:

添加成功返回1，失败返回0

Type
  Promise

#### (async, static) createObj() → {Promise.<GeoPolygons>}

构造一个新的 GeoPolygons 对象

Source:
  - GeoPolygons.js, line 33

##### Returns:

Type
  Promise.<GeoPolygons>

#### (async, static) del(index) → {Promise}

删除多边形

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待删除多边形序号

Source:
  - GeoPolygons.js, line 95

##### Returns:

删除成功返回1，失败返回0

Type
  Promise

#### (async, static) distance(type, destGeom) → {Promise}

计算两个几何对象间的距离

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` |  | 距离计算方法
`destGeom` |  | 第二个几何对象

Source:
  - GeoPolygons.js, line 77

##### Returns:

距离长度

Type
  Promise

#### (async, static) getDimension() → {Promise}

取几何维数

Source:
  - GeoPolygons.js, line 62

##### Returns:

几何维数

Type
  Promise

#### (async, static) getNum() → {Promise}

取多边形数目

Source:
  - GeoPolygons.js, line 108

##### Returns:

多边形的总个数

Type
  Promise

#### (async, static) getPolygon(index) → {Promise.<GeoPolygon>}

取多边形

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待取的多边形的序号

Source:
  - GeoPolygons.js, line 136

##### Returns:

获取的多边形对象

Type
  Promise.<GeoPolygon>

#### (async, static) getType() → {Promise}

获取几何对象的类型

Source:
  - GeoPolygons.js, line 49

##### Returns:

几何对象类型

Type
  Promise