FeatureAttributes¶
Namespace: ThinkGeo.Core
The id and the column values of one record, read without its geometry.
public class FeatureAttributes
Inheritance object → FeatureAttributes
Remarks:
This is deliberately not a Feature. Every public read of a FeatureSource leaves out a feature that carries no geometry, so a Feature that came from a read is expected to have one; a geometry-less Feature handed on to a layer, an edit or a spatial query would be a feature that draws and intersects nothing, and nothing in the type would say so. FeatureAttributes.Id is the id the feature reads report for the same record, so it can be passed straight to FeatureSource.GetFeaturesByIds(IEnumerable<string>, IEnumerable<string>).
Properties¶
Id¶
Gets the id the feature reads report for this record.
public string Id { get; }
Property Value¶
ColumnValues¶
Gets the column values, keyed by column name, formatted the way the feature reads format them.
public Dictionary<string, string> ColumnValues { get; }
Property Value¶
Constructors¶
FeatureAttributes(string)¶
Initializes a new instance of the FeatureAttributes class.
public FeatureAttributes(string id)
Parameters¶
id string
The id the feature reads report for this record.
FeatureAttributes(string, Dictionary<string, string>)¶
Initializes a new instance of the FeatureAttributes class.
public FeatureAttributes(string id, Dictionary<string, string> columnValues)
Parameters¶
id string
The id the feature reads report for this record.
columnValues Dictionary<string, string>
The column values, keyed by column name.