# Class: GeoLines

## GeoLines()

#### new GeoLines()

Source:
  - GeoLines.js, line 12

### Methods

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

添加一条线操作

##### Parameters:

Name | Type | Description
--- | --- | ---
`line` |  | 待添加的线对象

Source:
  - GeoLines.js, line 122

##### Returns:

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

Type
  Promise

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

计算线平面长度

Source:
  - GeoLines.js, line 195

##### Returns:

平面长度

Type
  Promise

#### (async, static) calLengthOfSRef(sRef) → {Promise}

计算线实地长度

##### Parameters:

Name | Type | Description
--- | --- | ---
`sRef` |  | 投影系参数

Source:
  - GeoLines.js, line 182

##### Returns:

实地长度

Type
  Promise

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

构造一个新的 GeoLines 对象

Source:
  - GeoLines.js, line 33

##### Returns:

Type
  Promise.<GeoLines>

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

删除线

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待删除线序号

Source:
  - GeoLines.js, line 95

##### Returns:

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

Type
  Promise

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

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

##### Parameters:

Name | Type | Description
--- | --- | ---
`type` |  | 距离类型
`destGeom` |  | 第二个几何对象

Source:
  - GeoLines.js, line 77

##### Returns:

距离长度

Type
  Promise

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

获取几何对象的维数

Source:
  - GeoLines.js, line 62

##### Returns:

维数

Type
  Promise

#### (async, static) getLine(index) → {Promise.<GeoLine>}

按序号取一条线

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待取线的序号

Source:
  - GeoLines.js, line 165

##### Returns:

获取的线对象

Type
  Promise.<GeoLine>

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

取线类型

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待取线的类型

Source:
  - GeoLines.js, line 151

##### Returns:

线类型

Type
  Promise

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

取线数目

Source:
  - GeoLines.js, line 108

##### Returns:

线的条数

Type
  Promise

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

获取几何对象的类型

Source:
  - GeoLines.js, line 49

##### Returns:

几何对象类型

Type
  Promise

#### (async, static) update(index, line) → {Promise}

更新线

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 待更新线的序号
`line` |  | 要更新的线对象

Source:
  - GeoLines.js, line 137

##### Returns:

更新成功返回1，失败返回0

Type
  Promise