Packagecom.esri.ags.tasks
Classpublic class FeatureSet
InheritanceFeatureSet Inheritance flash.events.EventDispatcher
SubclassesDirectionsFeatureSet

Creates a new FeatureSet.



Public Properties
 PropertyDefined by
  attributes : Array
[read-only] Array of Objects where each object holds the name-value pairs of field names and field values.
FeatureSet
  displayFieldName : String
The display field name.
FeatureSet
  features : Array
Array of graphic features.
FeatureSet
  fieldAliases : Object
The field aliases.
FeatureSet
  geometryType : String
The geometry type of the feature.
FeatureSet
  spatialReference : SpatialReference
The spatial reference of the features.
FeatureSet
Public Methods
 MethodDefined by
  
FeatureSet(features:Array = null)
Creates a new FeatureSet.
FeatureSet
  
[static] Convert from JSON to FeatureSet [added in version 1.3].
FeatureSet
  
convertToJSON():String
Convert this FeatureSet to a JSON formatted String [added in version 1.3].
FeatureSet
Property detail
attributesproperty
attributes:Array  [read-only]

Array of Objects where each object holds the name-value pairs of field names and field values. The Objects are pointers to the Graphic.attributes property for each Graphic in the features Array. This property returns a new Array each time it's called. This property is usually bound to a DataGrid's dataProvider property. The binding is triggered whenever the features property is set. If the FeatureSet has an empty set of features, then this will return a null.

This property can be used as the source for data binding.

Implementation
    public function get attributes():Array

See also

displayFieldNameproperty 
public var displayFieldName:String

The display field name.

This property can be used as the source for data binding.

featuresproperty 
features:Array  [read-write]

Array of graphic features.

This property can be used as the source for data binding.

Implementation
    public function get features():Array
    public function set features(value:Array):void
fieldAliasesproperty 
public var fieldAliases:Object

The field aliases.

This property can be used as the source for data binding.

geometryTypeproperty 
public var geometryType:String

The geometry type of the feature.

This property can be used as the source for data binding.

See also

spatialReferenceproperty 
public var spatialReference:SpatialReference

The spatial reference of the features.

This property can be used as the source for data binding.

Constructor detail
FeatureSet()constructor
public function FeatureSet(features:Array = null)

Creates a new FeatureSet.

Parameters
features:Array (default = null) — Optional array of features.
Method detail
convertFromJSON()method
public static function convertFromJSON(json:String):FeatureSet

Convert from JSON to FeatureSet [added in version 1.3].

Parameters
json:String — ArcGIS JSON String

Returns
FeatureSet — a new FeatureSet

See also

convertToJSON()method 
public function convertToJSON():String

Convert this FeatureSet to a JSON formatted String [added in version 1.3].

Returns
String — JSON formatted String

See also