new GeoLines()
- Source:
Methods
(async, static) append(line) → {Promise}
添加一条线操作
Parameters:
| Name | Type | Description |
|---|---|---|
line |
待添加的线对象 |
- Source:
Returns:
添加成功返回1,失败返回0
- Type
- Promise
(async, static) calLength() → {Promise}
计算线平面长度
- Source:
Returns:
平面长度
- Type
- Promise
(async, static) calLengthOfSRef(sRef) → {Promise}
计算线实地长度
Parameters:
| Name | Type | Description |
|---|---|---|
sRef |
投影系参数 |
- Source:
Returns:
实地长度
- Type
- Promise
(async, static) createObj() → {Promise.<GeoLines>}
构造一个新的 GeoLines 对象
- Source:
Returns:
- Type
- Promise.<GeoLines>
(async, static) del(index) → {Promise}
删除线
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待删除线序号 |
- Source:
Returns:
删除成功返回1,失败返回0
- Type
- Promise
(async, static) distance(type, destGeom) → {Promise}
计算两个几何对象间的距离
Parameters:
| Name | Type | Description |
|---|---|---|
type |
距离类型 | |
destGeom |
第二个几何对象 |
- Source:
Returns:
距离长度
- Type
- Promise
(async, static) getDimension() → {Promise}
获取几何对象的维数
- Source:
Returns:
维数
- Type
- Promise
(async, static) getLine(index) → {Promise.<GeoLine>}
按序号取一条线
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待取线的序号 |
- Source:
Returns:
获取的线对象
- Type
- Promise.<GeoLine>
(async, static) getLineType(index) → {Promise}
取线类型
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待取线的类型 |
- Source:
Returns:
线类型
- Type
- Promise
(async, static) getNum() → {Promise}
取线数目
- Source:
Returns:
线的条数
- Type
- Promise
(async, static) getType() → {Promise}
获取几何对象的类型
- Source:
Returns:
几何对象类型
- Type
- Promise
(async, static) update(index, line) → {Promise}
更新线
Parameters:
| Name | Type | Description |
|---|---|---|
index |
待更新线的序号 | |
line |
要更新的线对象 |
- Source:
Returns:
更新成功返回1,失败返回0
- Type
- Promise