Methods
(async, static) append(geom, rcd, inf) → {Promise}
添加对象
Parameters:
| Name | Type | Description |
|---|---|---|
geom |
对象几何信息 | |
rcd |
对象属性信息 | |
inf |
对象的图形信息 |
- Source:
Returns:
成功:添加的对象ID;失败:<=0
- Type
- Promise
(async, static) areaToField(bRealArea, fldIndex) → {Promise}
计算平面(实地)面积并保存到字段(仅支持区要素)
Parameters:
| Name | Type | Description |
|---|---|---|
bRealArea |
是否是实地面积 | |
fldIndex |
保存的字段索引号,即保存到第fldIndex个字段中 |
- Source:
Returns:
成功:>0,失败:<=0
- Type
- Promise
(async, static) calTotalArea(bRealArea) → {Promise}
计算总平面(实地)面积(仅支持区要素)
Parameters:
| Name | Type | Description |
|---|---|---|
bRealArea |
是否是实地面积 |
- Source:
Returns:
成功返回总面积
- Type
- Promise
(async, static) calTotalLength(bRealLen) → {Promise}
计算总平面(实地)长度(支持线、区要素)
Parameters:
| Name | Type | Description |
|---|---|---|
bRealLen |
实地长度的标志 |
- Source:
Returns:
成功返回总长度
- Type
- Promise
(async, static) clear() → {Promise}
清空数据
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) close() → {Promise}
关闭类
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) createObj() → {Promise.<SFeatureCls>}
构造一个新的 SFeatureCls 对象。
- Source:
Returns:
简单要素类对象
- Type
- Promise.<SFeatureCls>
(async, static) deleteByID(objID) → {Promise}
删除一个简单要素类
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
简单要素类ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) deleteByIDs(objIDs) → {Promise}
删除一组简单要素类
Parameters:
| Name | Type | Description |
|---|---|---|
objIDs |
一组简单要素类ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) get(objID, ptGeom, ptRcd, ptInf) → {Promise}
取对象信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID | |
ptGeom |
对象几何信息 | |
ptRcd |
对象属性信息 | |
ptInf |
对象的图形信息 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) getAliasName() → {Promise}
取类别名
- Source:
Returns:
类别名
- Type
- Promise
(async, static) getAtt(objID) → {Promise.<Record>}
取对象的属性信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID |
- Source:
Returns:
对象的属性信息
- Type
- Promise.<Record>
(async, static) getClsID() → {Promise}
取当前简单要素类对应的要素类ID
- Source:
Returns:
要素类ID
- Type
- Promise
(async, static) getClsInfo() → {Promise.<FClsInfo>}
获取当前简单要素类的信息
- Source:
Returns:
简单要素类的信息
- Type
- Promise.<FClsInfo>
(async, static) getClsName()
获取类名称
- Source:
(async, static) getClsType() → {Promise}
获取简单要素类的要素类类型
- Source:
Returns:
要素类类型
- Type
- Promise
(async, static) getCount() → {Promise}
获取简单要素类要素数目
- Source:
Returns:
要素数目
- Type
- Promise
(async, static) getFields() → {Promise.<Fields>}
获取当前简单要素类的属性结构
- Source:
Returns:
属性结构
- Type
- Promise.<Fields>
(async, static) getGDataBase() → {Promise.<DataBase>}
获取地理数据库
- Source:
Returns:
地理数据库对象
- Type
- Promise.<DataBase>
(async, static) getGeometry(objID) → {Promise.<Geometry>}
取对象几何信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID |
- Source:
Returns:
对象几何信息
- Type
- Promise.<Geometry>
(async, static) getGeometryType(objID)
获取要素几何类型
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
要素ID |
- Source:
(async, static) getGeomType() → {Promise}
获取对象几何类型
- Source:
Returns:
成功返回对象几何类型
- Type
- Promise
(async, static) getInfo(objID) → {Promise.<GeomInfo>}
获取对象图形信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID |
- Source:
Returns:
对象图形信息
- Type
- Promise.<GeomInfo>
(async, static) getRange() → {Promise.<Rect>}
获取简单要素类的矩形范围
- Source:
Returns:
矩形范围
- Type
- Promise.<Rect>
(async, static) getRect(objID) → {Promise.<Rect>}
取要素矩形范围
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID |
- Source:
Returns:
矩形范围
- Type
- Promise.<Rect>
(async, static) getScaleX() → {Promise}
获取X方向符号比
- Source:
Returns:
X方向符号比
- Type
- Promise
(async, static) getScaleY() → {Promise}
获取Y方向符号比
- Source:
Returns:
Y方向符号比
- Type
- Promise
(async, static) getSrID() → {Promise}
取空间参考系ID
- Source:
Returns:
空间参考系ID
- Type
- Promise
(async, static) getURL() → {Promise}
取类URL
- Source:
Returns:
URL串
- Type
- Promise
(async, static) hasOpen() → {Promise}
是否已经打开
- Source:
Returns:
是否打开
- Type
- Promise
(async, static) isSyncEnabled() → {Promise}
是否具有同步能力
- Source:
Returns:
是否具有同步能力
- Type
- Promise
(async, static) lengthToField(bRealLen, fldI) → {Promise}
计算平面(实地)长度并保存到字段(支持线、区要素)
Parameters:
| Name | Type | Description |
|---|---|---|
bRealLen |
是否计算实际长度 | |
fldI |
保存数据的属性字段索引号 |
- Source:
Returns:
成功:>0,失败:<=0
- Type
- Promise
(async, static) openById(id) → {Promise}
打开简单要素类图层
Parameters:
| Name | Type | Description |
|---|---|---|
id |
图层ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) openByName(name) → {Promise}
打开简单要素类
Parameters:
| Name | Type | Description |
|---|---|---|
name |
简单要素名称 |
- Source:
Returns:
成功:类对象ID;失败:<=0
- Type
- Promise
(async, static) registerSyncEnabled() → {Promise}
注册同步能力
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) removeByID(db, clsID) → {Promise}
根据类ID删除类
Parameters:
| Name | Type | Description |
|---|---|---|
db |
地理数据库对象 | |
clsID |
类ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) removeByName(db, clsName) → {Promise}
根据类名删除类
Parameters:
| Name | Type | Description |
|---|---|---|
db |
地理数据库对象 | |
clsName |
类名 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) select(def) → {Promise.<RecordSet>}
查询
Parameters:
| Name | Type | Description |
|---|---|---|
def |
查询条件 |
- Source:
Returns:
记录集对象
- Type
- Promise.<RecordSet>
(async, static) selectAllFeature() → {Promise.<RecordSet>}
获取当前要素类所有要素集合
- Source:
Returns:
成功返回查询到的要素集合,失败返回空
- Type
- Promise.<RecordSet>
(async, static) setAliasName(newVal) → {Promise}
设置类别名
Parameters:
| Name | Type | Description |
|---|---|---|
newVal |
类别名 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) setClsName(newVal)
设置类名称
Parameters:
| Name | Type | Description |
|---|---|---|
newVal |
类名称 |
- Source:
(async, static) setScaleXY(scale) → {Promise}
设置X,Y方向符号比
Parameters:
| Name | Type | Description |
|---|---|---|
scale |
符号比 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) setSrID(newVal) → {Promise}
设置要素数据集ID
Parameters:
| Name | Type | Description |
|---|---|---|
newVal |
要素数据集ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) update(objID, geom, rcd, inf) → {Promise}
更新对象
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID | |
geom |
对象几何信息 | |
rcd |
对象属性信息 | |
inf |
对象的图形信息 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) updateAtt(objID, rcd) → {Promise}
更新对象的属性
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID | |
rcd |
对象属性信息 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) updateFields(fields) → {Promise}
更新要素类
Parameters:
| Name | Type | Description |
|---|---|---|
fields |
属性信息 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) updateGeometry(objID, geom) → {Promise}
更新几何图形信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID | |
geom |
几何对象 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise
(async, static) updateInfo(objID, inf) → {Promise}
更新对象图形信息
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
对象记录ID | |
inf |
对象的图形信息 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise