类 Feature

Feature class

由几何形状和用户定义属性组成的地理要素。

public class Feature

属性

名称描述
Geometry { get; set; }获取或设置要素的几何对象。不能为 null,使用 Null 表示缺失的几何对象。

方法

名称描述
CopyValues(Feature)从另一个要素复制属性值。
GetValue(string)获取属性的值。
GetValue<T>(string)获取属性的值。
GetValueOrDefault(string, object)获取属性的值,如果该值未设置或为 null,则返回 DefaultValue
GetValueOrDefault<T>(string)获取属性的值,如果该值未设置或为 null,则返回 DefaultValue
GetValueOrDefault<T>(string, object)获取属性的值,如果该值未设置或为 null,则返回 DefaultValue
GetValues(object[], object)返回所有属性的值,以数组形式。
GetValuesDump(object)返回所有属性的值,以数组形式。考虑使用GetValues方法以避免额外的内存分配。
GetValuesList<T>(string, string, int)获取属性序列的值,作为列表。
IsValueNull(string)确定指定属性是否已显式设置为 null 值。
IsValueSet(string)检查此特性中是否已设置属性值。
SetValue<T>(string, T)设置属性的新值。
SetValueNull(string)将属性的值设置为 null
SetValues(object[])为所有属性设置新值。同时考虑使用CopyValues方法,以在一次调用中简化设置值的过程。
UnsetValue(string)从此特性中移除属性值。

另见