# Class: ElpTransformation

## ElpTransformation()

#### new ElpTransformation()

Source:
  - ElpTransformation.js, line 11

### Methods

#### (async, static) addElpTransParam(param) → {Promise.<Number>}

添加椭球坐标系变换参数对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`param` |  | 椭球坐标系变换参数对象

Source:
  - ElpTransformation.js, line 164

##### Returns:

成功则返回椭球参数对象索引

Type
  Promise.<Number>

#### (async, static) clearElpTransParam() → {Promise.<boolean>}

清空椭球坐标系变换参数对象

Source:
  - ElpTransformation.js, line 205

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) countCoeByPntList(transType, pnts, sourceSpheroid, sourceAngUnit, spheroid, angUnit) → {Promise.<ElpTransParam>}

根据控制点结构对象序列，计算椭球参数转换对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`transType` |  | 转换类型(0/1:三参数直角平移/七参数)
`pnts` |  | 控制点结构对象序列
`sourceSpheroid` |  | 椭球体索引(1开始)
`sourceAngUnit` |  | 获取空间数据水平坐标单位：角度(4/7/3/5:度/分/秒/度分秒)
`spheroid` |  | 椭球体索引(1开始)
`angUnit` |  | 获取空间数据水平坐标单位：角度(4/7/3/5:度/分/秒/度分秒)

Source:
  - ElpTransformation.js, line 273

##### Returns:

椭球坐标系变换参数

Type
  Promise.<ElpTransParam>

#### (async, static) delElpTransParamByIndex(index) → {Promise.<boolean>}

根据索引删除椭球坐标系变换参数对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 椭球转换参数对象索引

Source:
  - ElpTransformation.js, line 178

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) delElpTransParamByName(name) → {Promise.<boolean>}

根据索引删除椭球坐标系变换参数对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` |  | 椭球转换参数对象名称

Source:
  - ElpTransformation.js, line 192

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) getElpParamByIndex(index) → {Promise.<ElpParam>}

根据椭球索引，获取椭球参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 椭球索引

Source:
  - ElpTransformation.js, line 34

##### Returns:

成功返回椭球参数对象，失败返回空

Type
  Promise.<ElpParam>

#### (async, static) getElpParamByName(name) → {Promise.<ElpParam>}

根据椭球名称，获取椭球参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` |  | 椭球名称

Source:
  - ElpTransformation.js, line 52

##### Returns:

成功返回椭球参数对象，失败返回空

Type
  Promise.<ElpParam>

#### (async, static) getElpParamCount() → {Promise.<Number>}

获取椭球个数

Source:
  - ElpTransformation.js, line 20

##### Returns:

椭球个数

Type
  Promise.<Number>

#### (async, static) getElpTransParamByIndex(index) → {Promise.<ElpTransParam>}

根据索引，获取椭球转换参数对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 转换参数的索引值

Source:
  - ElpTransformation.js, line 98

##### Returns:

成功返回椭球转换参数对象，失败返回空

Type
  Promise.<ElpTransParam>

#### (async, static) getElpTransParamByName(name) → {Promise.<ElpTransParam>}

根据名称，获取椭球转换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` |  | 椭球转换参数对象的名称

Source:
  - ElpTransformation.js, line 116

##### Returns:

成功返回椭球转换参数对象，失败返回空

Type
  Promise.<ElpTransParam>

#### (async, static) getElpTransParamCount() → {Promise.<Number>}

椭球坐标系变换参数对象个数

Source:
  - ElpTransformation.js, line 84

##### Returns:

椭球坐标系变换参数个数

Type
  Promise.<Number>

#### (async, static) loadElpTransParam(strFile) → {Promise.<boolean>}

导入椭球变换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`strFile` |  | 文件URL

Source:
  - ElpTransformation.js, line 219

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) loadElpTransParam0(strFile) → {Promise.<ElpTransParam>}

从文件导入椭球转换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`strFile` |  | 文件URL

Source:
  - ElpTransformation.js, line 233

##### Returns:

成功返回椭球转换对象列表，失败返回空

Type
  Promise.<ElpTransParam>

#### (async, static) saveElpTransParam(strFile) → {Promise.<boolean>}

导出椭球变换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`strFile` |  | 文件URL

Source:
  - ElpTransformation.js, line 254

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) setElpParam(index, param) → {Promise.<void>}

根据椭球索引，设置或替换椭球参数（不永久保存）

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 椭球索引
`param` |  | 椭球参数

Source:
  - ElpTransformation.js, line 71

##### Returns:

Type
  Promise.<void>

#### (async, static) setElpTransParamByIndex(index, param) → {Promise.<boolean>}

修改/设置椭球转换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` |  | 椭球转换参数对象索引
`param` |  | 椭球转换参数对象

Source:
  - ElpTransformation.js, line 135

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>

#### (async, static) setElpTransParamByName(name, param) → {Promise.<boolean>}

修改/设置椭球转换参数

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` |  | 椭球转换参数对象名称
`param` |  | 椭球转换参数对象

Source:
  - ElpTransformation.js, line 150

##### Returns:

成功返回true，失败返回false

Type
  Promise.<boolean>