Methods
(async, static) append(feature) → {Promise.<int>}
添加要素
Parameters:
| Name | Type | Description |
|---|---|---|
feature |
Feature | 简单要素对象 |
- Source:
Returns:
添加成功后返回 要素ID
- Type
- Promise.<int>
(async, static) appendFeatures(featureArray) → {Promise.<int>}
添加要素
Parameters:
| Name | Type | Description |
|---|---|---|
featureArray |
List.<Feature> | 简单要素对象 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>
(async, static) createCls(clsType, name, geomType, flds) → {Promise.<String>}
创建地理数据类
Parameters:
| Name | Type | Description |
|---|---|---|
clsType |
XClsType | 地理类型 |
name |
String | 名称 |
geomType |
GeomType | 几何类型 |
flds |
Fields | 字段属性 |
- Source:
Returns:
成功:返回参数返回创建的要素类的GDBP地址;失败:String等于null
- Type
- Promise.<String>
(async, static) createClsBySRef(clsType, name, geomType, srefName, dsName, flds) → {Promise.<String>}
创建地理数据类
Parameters:
| Name | Type | Description |
|---|---|---|
clsType |
XClsType | 地理类型 |
name |
String | 名称 |
geomType |
GeomType | 几何类型 |
srefName |
String | 空间参考系名称 |
dsName |
String | 数据集名称 |
flds |
Fields | 字段属性 |
- Source:
Returns:
成功:返回参数返回创建的要素类的GDBP地址;失败:String等于null
- Type
- Promise.<String>
(async, static) createObjByIGSData(strIGServerBaseURL, strDataURL) → {Promise.<FeatureEdit>}
构造一个新的 FeatureEdit 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
strIGServerBaseURL |
String | 服务基地址 |
strDataURL |
String | 数据地址 |
- Source:
Returns:
eatureEdit 对象。
- Type
- Promise.<FeatureEdit>
(async, static) createObjByIGSDoc(strIGServerBaseURL, strDocName, mapID, layerID) → {Promise.<FeatureEdit>}
构造一个新的 FeatureEdit 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
strIGServerBaseURL |
String | 基地址 |
strDocName |
String | 地图文档名 |
mapID |
int | 地图ID |
layerID |
int | 图层 ID |
- Source:
Returns:
eatureEdit 对象。
- Type
- Promise.<FeatureEdit>
(async, static) createObjByVectorCls(cls) → {Promise.<FeatureEdit>}
构造一个新的 FeatureEdit 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
cls |
IVectorCls | 矢量类对象基类 |
- Source:
Returns:
eatureEdit 对象。
- Type
- Promise.<FeatureEdit>
(async, static) createObjByVectorLayer(vectorLayer) → {Promise.<FeatureEdit>}
构造一个新的 FeatureEdit 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
vectorLayer |
VectorLayer | 矢量图层 |
- Source:
Returns:
eatureEdit 对象。
- Type
- Promise.<FeatureEdit>
(async, static) delete(objID) → {Promise.<int>}
删除要素
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
int | 要素ID |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>
(async, static) deleteCls(clsType, name) → {Promise.<int>}
删除地理数据类
Parameters:
| Name | Type | Description |
|---|---|---|
clsType |
XClsType | 地理类型 |
name |
String | 名称 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>
(async, static) deleteobjIDs(objIDArray) → {Promise.<int>}
删除一组简单要素
Parameters:
| Name | Type | Description |
|---|---|---|
objIDArray |
Array.<long> | 简单要素ID数组 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>
(async, static) update(objID, feature) → {Promise.<int>}
更新要素
Parameters:
| Name | Type | Description |
|---|---|---|
objID |
int | 要素ID |
feature |
Feature | 要素对象 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>
(async, static) updateFeatures(features) → {Promise.<int>}
更新要素
Parameters:
| Name | Type | Description |
|---|---|---|
features |
List.<Feature> | 要素数据集 |
- Source:
Returns:
成功:>0;失败:<=0
- Type
- Promise.<int>