Packagecom.esri.baserver.tasks.analyses
Classpublic class SpatialOverlayParameters
InheritanceSpatialOverlayParameters Inheritance AnalysisParameters Inheritance AnalysisParameters Inheritance BATaskParameters Inheritance Object

The SpatialOverlayParameters class provides input parameters for the Spatial Overlay task.

The analysis can be restricted to an analysis extent if the analysisExtent parameter is specified. The optional singleAreaID parameter restricts the analysis to a single area.

The summarizations parameter specifies names of variables from the data hierarchy to be aggregated on areas of the boundaries layer and appended to the output feature class as attributes.

The returnGeometry option specifies how to return the analysis result in the FeatureSet property of the TaskResultOutput—with or without the shape attribute.

Output options for this task include rendering an output image (outputTypes.getMapImage) and/or creating a feature class for subsequent analysis (outputTypes.getFeatureClass). If no output options are specified, the required output options are specified as follows. If the renderingParameters parameter is specified, the image output is requested. If the outputAnalysisItem parameter is specified, the output analysis feature class will be stored in the repository. If both renderingParameters and outputAnalysisItem parameters are missing, the feature class output is requested.

View the examples

See also

SpatialOverlayTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  analysisExtent : Geometry
Spatial/geographic extent to restrict analysis by.
SpatialOverlayParameters
  areaIDField : String
Name of area ID field in the boundaries layer.
SpatialOverlayParameters
  boundaries : Boundaries
The polygon layer whose features represent trade areas.
SpatialOverlayParameters
  dataHierarchy : String
Name of a data hierarchy used for summarization.
SpatialOverlayParameters
 InheritedoutputAnalysisItem : FolderItem
Configuration options for storing the output feature class in the repository.
AnalysisParameters
 InheritedoutputSpatialReference : SpatialReference
The spatial reference to return the output feature set in.
AnalysisParameters
 InheritedoutputTypes : OutputTypes
Task output types.
BATaskParameters
 InheritedrenderingParameters : RenderingParameters
Configuration options for rendering output to map image.
AnalysisParameters
 InheritedresultType : BAResultType
[read-only] Type of the result returned by the task associated with these parameters.
BATaskParameters
 InheritedreturnGeometry : Boolean
An option specifying the presence of the shape attribute in the returned record set.
AnalysisParameters
  singleAreaID : String
ID of a single area of the boundaries layer to apply analysis on.
SpatialOverlayParameters
  summarizations : Array
Fields of the geography layer to be aggregated to the output feature class.
SpatialOverlayParameters
 InheritedtaskName : String
[read-only] Name of a Community Analyst Task associated with these parameters.
BATaskParameters
Public Methods
 MethodDefined By
  
Creates a new instance of the SpatialOverlayParameters class.
SpatialOverlayParameters
Property Detail
analysisExtentproperty
analysisExtent:Geometry

Spatial/geographic extent to restrict analysis by. This parameter expects a value of the Extent or Polygon type.


Implementation
    public function get analysisExtent():Geometry
    public function set analysisExtent(value:Geometry):void

See also

areaIDFieldproperty 
areaIDField:String

Name of area ID field in the boundaries layer.

The default value is "AREA_ID".


Implementation
    public function get areaIDField():String
    public function set areaIDField(value:String):void
boundariesproperty 
boundaries:Boundaries

The polygon layer whose features represent trade areas.


Implementation
    public function get boundaries():Boundaries
    public function set boundaries(value:Boundaries):void
dataHierarchyproperty 
dataHierarchy:String

Name of a data hierarchy used for summarization. If this property value is null or empty, the default data hierarchy is used. List of available data hierarchies can be retrieved with Get Data Hierarchies task.


Implementation
    public function get dataHierarchy():String
    public function set dataHierarchy(value:String):void

See also

singleAreaIDproperty 
singleAreaID:String

ID of a single area of the boundaries layer to apply analysis on.


Implementation
    public function get singleAreaID():String
    public function set singleAreaID(value:String):void
summarizationsproperty 
summarizations:Array

Fields of the geography layer to be aggregated to the output feature class. This array should contain items of the String type. Available summarization fields can be retrieved with the Get Summarizations task.


Implementation
    public function get summarizations():Array
    public function set summarizations(value:Array):void

See also

GetSummarizationsTask
Constructor Detail
SpatialOverlayParameters()Constructor
public function SpatialOverlayParameters(outputTypes:OutputTypes = null)

Creates a new instance of the SpatialOverlayParameters class.

Parameters
outputTypes:OutputTypes (default = null) — Task output types.
Examples
ActionScript to create SpatialOverlayParameters and then use in a Spatial Overlay task:
                     
     var parameters : SpatialOverlayParameters = new SpatialOverlayParameters();
     
     // The Boundaries type could take either data as type 
     // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem, or com.esri.bacore.StandardLayer. 
     
     // Set boundaries with a valid data type.
     parameters.boundaries = new Boundaries(boundaries);
     
     // Set demographic variables to be aggregated to the output feature class.
     parameters.summarizations = ["TOTPOP_CY", "HHPOP_CY"];
     
     // Optionally restrict analysis to myExtent that is a value of the Extent or Polygon type.
     //parameters.analysisExtent = myExtent;
     
     spatialOverlayTask.execute(parameters, new Responder(resultHandler, faultHandler));