Packagecom.esri.bacore.domain
Classpublic class StudyArea
InheritanceStudyArea Inheritance flash.events.EventDispatcher
Implements IStudyArea
Subclasses GeographyStudyArea, LocationStudyArea, PolygonStudyArea

Since : Community Analyst API for Flex 2.2.

The StudyArea class is the default implementation of IStudyArea interface.



Public Properties
 PropertyDefined By
  description : String
Study area description.
StudyArea
  featureSet : FeatureSet
Feature set associated with this study area.
StudyArea
  id : String
Study area ID.
StudyArea
  name : String
Study area name.
StudyArea
Public Methods
 MethodDefined By
  
Creates a new instance of the StudyArea class.
StudyArea
  
readExternal(input:IDataInput):void
The class implements this method to decode itself from a data stream by calling the methods of the IDataInput interface.
StudyArea
  
toBoundaries(studyArea:IStudyArea, combineGeographyFeatures:Boolean = false):Object
[static] Converts a geography study area to a FeatureSet or StandardLayer instance.
StudyArea
  
writeExternal(output:IDataOutput):void
The class implements this method to encode itself for a data stream by calling the methods of the IDataOutput interface.
StudyArea
Property Detail
descriptionproperty
description:String

Study area description.


Implementation
    public function get description():String
    public function set description(value:String):void
featureSetproperty 
featureSet:FeatureSet

Feature set associated with this study area.

The feature set is required for a polygon study area. For a geography study area, a feature set is optional. In the case of a location study area, a feature set is required when such study area is used in report components.


Implementation
    public function get featureSet():FeatureSet
    public function set featureSet(value:FeatureSet):void
idproperty 
id:String

Study area ID.

By default study area IDs are enumerated from zero.


Implementation
    public function get id():String
    public function set id(value:String):void
nameproperty 
name:String

Study area name.


Implementation
    public function get name():String
    public function set name(value:String):void
Constructor Detail
StudyArea()Constructor
public function StudyArea()

Creates a new instance of the StudyArea class.

Method Detail
readExternal()method
public function readExternal(input:IDataInput):void

The class implements this method to decode itself from a data stream by calling the methods of the IDataInput interface.

Parameters

input:IDataInput

toBoundaries()method 
public static function toBoundaries(studyArea:IStudyArea, combineGeographyFeatures:Boolean = false):Object

Converts a geography study area to a FeatureSet or StandardLayer instance.

If the input study area is IGeographyStudyArea, it is converted to a new instance of the StandardLayer class using the GeographyStudyArea.toStandardLayer method. In other cases, the feature set of the study area is tested to have the polygon geometry type and is returned. If something wrong, the BARequestError error is thrown. If study area is null or empty (its feature set has no features or its list of geography features is empty), null is returned.

Parameters

studyArea:IStudyArea — A study area to be converted.
 
combineGeographyFeatures:Boolean (default = false) — Whether to join ids of geography feature into one combined feature or not.

Returns
Object — An instance of FeatureSet or StandardLayer or null.

See also

writeExternal()method 
public function writeExternal(output:IDataOutput):void

The class implements this method to encode itself for a data stream by calling the methods of the IDataOutput interface.

Parameters

output:IDataOutput