# Class: GeoLine

## GeoLine()

#### new GeoLine()

Source:
  - GeoLine.js, line 13

### Methods

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

获取线段长度

Source:
  - GeoLine.js, line 81

##### Returns:

长度值

Type
  Promise

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

计算线实地或者平面长度

##### Parameters:

Name | Type | Description
--- | --- | ---
`ptSRef` |  | 投影参数

Source:
  - GeoLine.js, line 68

##### Returns:

平面长度

Type
  Promise

#### (async, static) disperseToDots(dStep) → {Promise}

离散化解析线为折线点

##### Parameters:

Name | Type | Description
--- | --- | ---
`dStep` |  | 步长

Source:
  - GeoLine.js, line 95

##### Returns:

成功返回1，失败返回0

Type
  Promise

#### (async, static) get2Dots() → {Promise.<Dots>}

获取线中的二维点序列

Source:
  - GeoLine.js, line 35

##### Returns:

获取的二维点序列

Type
  Promise.<Dots>

#### (async, static) get3Dots() → {Promise.<Dots3D>}

获取线中的三维点序列

Source:
  - GeoLine.js, line 51

##### Returns:

获取的三维点序列

Type
  Promise.<Dots3D>