Feature Class

Feature(option)

要素信息对象

Fx构造函数

# new Feature(option)

要素信息对象

参数:
名称 类型 属性 默认值 描述
option Object

属性键值对

AttValue Array <optional>
null

属性值 Array,String in an Array

FID Number <optional>
0

要素id号

bound Zondy.Object.Rectangle <optional>
null

要素的外包矩形

fGeom Zondy.Object.FeatureGeometry <optional>
null

要素的几何图形描述

ftype FeatureType <optional>
null

要素几何类型 Zondy.Enum.FeatureType类型,只对简单要素类有效

GraphicInfo Zondy.Object.WebGraphicsInfo <optional>
null

几何图形参数

查看源代码 service/common/Feature.js, line 20

成员变量

Array

# AttValue

属性值 Array

Default Value:
  • null

查看源代码 service/common/Feature.js, line 36

Zondy.Object.Rectangle

# bound

要素的外包矩形

Default Value:
  • null

查看源代码 service/common/Feature.js, line 52

Zondy.Object.FeatureGeometry

# fGeom

要素的几何图形描述

Default Value:
  • null

查看源代码 service/common/Feature.js, line 60

Number

# FID

要素id号

Default Value:
  • 0

查看源代码 service/common/Feature.js, line 44

FeatureType

# ftype

要素几何类型Zondy.Enum.FeatureType 类型,只对简单要素类有效

Default Value:
  • 0

查看源代码 service/common/Feature.js, line 68

Zondy.Object.WebGraphicsInfo

# GraphicInfo

几何图形参数

Default Value:
  • null

查看源代码 service/common/Feature.js, line 76

方法

# getAttValue(attKey) → {String}

获取当前要素的属性值

参数:
名称 类型 描述
attKey Number

属性字段关键字或者属性序号

查看源代码 service/common/Feature.js, line 87

获取当前要素的属性值

String

# getAttValueArray() → {Array}

获取当前要素的所有字段属性值

查看源代码 service/common/Feature.js, line 120

字段属性值数组

Array

# getFID() → {Number}

获取当前要素的FID

查看源代码 service/common/Feature.js, line 152

当前要素的FID

Number

# getGeometry() → {String}

获取当前要素的几何描述

查看源代码 service/common/Feature.js, line 143

当前要素的几何描述

String

# getGraphicInfo() → {Zondy.Object.WebGraphicsInfo}

获取当前要素的几何图形参数

查看源代码 service/common/Feature.js, line 107

当前要素的几何图形参数

# getRectBound() → {Zondy.Object.Rectangle}

获取当前要素的外包矩形

查看源代码 service/common/Feature.js, line 129

当前要素的外包矩形

# setAttValues(values)

设置当前要素的所有属性值

参数:
名称 类型 描述
values Array | Object

属性值数组 /或者属性键值对

查看源代码 service/common/Feature.js, line 161

# setBound(bound) → {ol.extent}

设置当前要素的外包矩形

参数:
名称 类型 描述
bound String | Zondy.Object.Rectangle

'xmin,ymin,xmax,ymax' | Rectangle

查看源代码 service/common/Feature.js, line 171

外包矩形描述,可以是字符串,zondy矩形或者openlayers矩形

ol.extent

# setFID(fid)

设置当前要素的FID

参数:
名称 类型 描述
fid Number

要素id号

查看源代码 service/common/Feature.js, line 195

# setFType(fid)

设置几何图形的类型

参数:
名称 类型 描述
fid FeatureType

几何类型 Zondy.Enum.FeatureType

查看源代码 service/common/Feature.js, line 204