# Class: FeatureQuery

## FeatureQuery()

#### new FeatureQuery()

Source:
  - FeatureQuery.js, line 12

### Methods

#### (async, static) createObjByProperty(layer) → {Promise.<FeatureQuery>}

构造一个新的 FeatureQuery 对象。

##### Parameters:

Name | Type | Description
--- | --- | ---
`layer` |  |

Source:
  - FeatureQuery.js, line 23

##### Returns:

Type
  Promise.<FeatureQuery>

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

获取返回的属性字段信息

Source:
  - FeatureQuery.js, line 202

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

获取每页结果数目

Source:
  - FeatureQuery.js, line 226

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

获取查询范围

Source:
  - FeatureQuery.js, line 78

##### Returns:

查询范围

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

获取空间过滤条件

Source:
  - FeatureQuery.js, line 105

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

获取要素属性

Source:
  - FeatureQuery.js, line 51

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

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

Source:
  - FeatureQuery.js, line 154

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

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

Source:
  - FeatureQuery.js, line 178

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

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

Source:
  - FeatureQuery.js, line 130

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

要素查询

Source:
  - FeatureQuery.js, line 240

##### Returns:

Type
  Promise.<FeaturePagedResult>

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

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

##### Parameters:

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

Source:
  - FeatureQuery.js, line 191

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

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

##### Parameters:

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

Source:
  - FeatureQuery.js, line 215

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

设置查询范围

##### Parameters:

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

Source:
  - FeatureQuery.js, line 65

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

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

##### Parameters:

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

Source:
  - FeatureQuery.js, line 143

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

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

##### Parameters:

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

Source:
  - FeatureQuery.js, line 167

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

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

##### Parameters:

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

Source:
  - FeatureQuery.js, line 118

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

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

##### Parameters:

Name | Type | Description
--- | --- | ---
`spatialRel` |  | 空间过滤条件

Source:
  - FeatureQuery.js, line 94

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

设置属性查询条件

##### Parameters:

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

Source:
  - FeatureQuery.js, line 39