# Class: FeatureQuery

## FeatureQuery()

#### new FeatureQuery()

Source:
  - FeatureQuery.js, line 11

### Methods

#### (async, static) createObjByIGSData(strIGServerBaseURL, strDataURL) → {Promise.<FeatureEdit>}

构造一个新的 FeatureQuery 对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`strIGServerBaseURL` | String | 服务基地址
`strDataURL` | String | 数据地址

Source:
  - FeatureQuery.js, line 82

##### Returns:

eatureEdit 对象。

Type
  Promise.<FeatureEdit>

#### (async, static) createObjByIGSDoc(strIGServerBaseURL, strDocName, mapID, layerID) → {Promise.<FeatureEdit>}

构造一个新的 FeatureQuery 对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`strIGServerBaseURL` | String | 基地址
`strDocName` | String | 地图文档名
`mapID` | int | 地图ID
`layerID` | int | 图层 ID

Source:
  - FeatureQuery.js, line 59

##### Returns:

eatureEdit 对象。

Type
  Promise.<FeatureEdit>

#### (async, static) createObjByVectorCls(cls) → {Promise.<FeatureEdit>}

构造一个新的 FeatureQuery 对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`cls` | IVectorCls | 矢量类对象基类

Source:
  - FeatureQuery.js, line 39

##### Returns:

eatureEdit 对象。

Type
  Promise.<FeatureEdit>

#### (async, static) createObjByVectorLayer(vectorLayer) → {Promise.<FeatureEdit>}

构造一个新的 FeatureQuery 对象

##### Parameters:

Name | Type | Description
--- | --- | ---
`vectorLayer` | VectorLayer | 矢量图层

Source:
  - FeatureQuery.js, line 22

##### Returns:

eatureEdit 对象。

Type
  Promise.<FeatureEdit>

#### (async, static) getOutFields()

获取返回的属性字段信息

Source:
  - FeatureQuery.js, line 270

#### (async, static) getPageSize()

获取每页结果数目

Source:
  - FeatureQuery.js, line 294

#### (async, static) getQueryBound()

获取查询范围

Source:
  - FeatureQuery.js, line 140

##### Returns:

查询范围

#### (async, static) getSpatialFilterRelationship()

获取空间过滤条件

Source:
  - FeatureQuery.js, line 167

#### (async, static) getWhereClause()

获取要素属性

Source:
  - FeatureQuery.js, line 113

#### (async, static) isReturnAttribute()

获取是否返回属性数据标志

Source:
  - FeatureQuery.js, line 220

#### (async, static) isReturnGeoInfo()

获取是否返回属性数据标志

Source:
  - FeatureQuery.js, line 246

#### (async, static) isReturnGeometry()

获取是否返回几何数据标志

Source:
  - FeatureQuery.js, line 194

#### (async, static) query() → {Promise.<FeaturePagedResult>}

要素查询

Source:
  - FeatureQuery.js, line 308

##### Returns:

Type
  Promise.<FeaturePagedResult>

#### (async, static) setOutFields(outFields)

设置返回的属性字段信息,字段名间使用','分割

##### Parameters:

Name | Type | Description
--- | --- | ---
`outFields` |  | 字段名间使用','分割

Source:
  - FeatureQuery.js, line 259

#### (async, static) setPageSize(pageSize)

设置每页结果数目,缺省为10条

##### Parameters:

Name | Type | Description
--- | --- | ---
`pageSize` |  | 每页结果数目

Source:
  - FeatureQuery.js, line 283

#### (async, static) setQueryBound(queryBound)

设置查询范围

##### Parameters:

Name | Type | Description
--- | --- | ---
`queryBound` |  | 查询范围

Source:
  - FeatureQuery.js, line 127

#### (async, static) setReturnAttribute(returnAttribute)

设置是否返回属性数据标志,缺省为true

##### Parameters:

Name | Type | Description
--- | --- | ---
`returnAttribute` |  | 返回属性数据

Source:
  - FeatureQuery.js, line 209

#### (async, static) setReturnGeoInfo(returnAttribute)

设置是否返回属性数据标志,缺省为true

##### Parameters:

Name | Type | Description
--- | --- | ---
`returnAttribute` |  | 返回属性数据

Source:
  - FeatureQuery.js, line 235

#### (async, static) setReturnGeometry(returnGeometry)

设置是否返回几何数据标志,缺省为true

##### Parameters:

Name | Type | Description
--- | --- | ---
`returnGeometry` |  | 返回几何数据

Source:
  - FeatureQuery.js, line 182

#### (async, static) setSpatialFilterRelationship(spatialRel)

设置空间过滤条件,缺省是0

##### Parameters:

Name | Type | Description
--- | --- | ---
`spatialRel` |  | 空间过滤条件(0为模糊相交、1为精确相交)

Source:
  - FeatureQuery.js, line 156

#### (async, static) setWhereClause(whereClause)

设置属性查询条件

##### Parameters:

Name | Type | Description
--- | --- | ---
`whereClause` |  | 属性查询条件

Source:
  - FeatureQuery.js, line 101