Package | com.esri.bacore.domain |
Class | public class StudyArea |
Inheritance | StudyArea flash.events.EventDispatcher |
Implements | IStudyArea |
Subclasses | GeographyStudyArea, LocationStudyArea, PolygonStudyArea |
Since : | Community Analyst API for Flex 2.2. |
Property | Defined 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 |
Method | Defined 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 |
description | property |
description:String
Study area description.
public function get description():String
public function set description(value:String):void
featureSet | property |
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.
public function get featureSet():FeatureSet
public function set featureSet(value:FeatureSet):void
id | property |
id:String
Study area ID.
By default study area IDs are enumerated from zero.
public function get id():String
public function set id(value:String):void
name | property |
name:String
Study area name.
public function get name():String
public function set name(value:String):void
StudyArea | () | Constructor |
public function StudyArea()
Creates a new instance of the StudyArea class.
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.
|
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 |