Packagecom.esri.baserver.tasks.reports
Classpublic class PointsInPolygonReportParameters
InheritancePointsInPolygonReportParameters Inheritance StandardReportParameters Inheritance StandardReportParameters Inheritance BATaskParameters Inheritance Object

The PointsInPolygonReportParameters class provides input parameters for the Points in Polygon Report task.

The analysis can be restricted to an analysis extent if the analysisExtent parameter is specified. The additionalFields parameter allows user to show additional fields of the boundary layer in the report.

Output options for this task include creating a report (outputTypes.getReport). You need not specify the output options for this task because the getReport output type is set by default.

View the examples

See also

PointsInPolygonReportTask


Public Properties
 PropertyDefined By
 InheritedactiveDatasetID : String
Active dataset ID.
BATaskParameters
  additionalFields : Array
Additional fields of the featureLayer layer to be shown in the report.
PointsInPolygonReportParameters
  analysisExtent : Geometry
Spatial/geographic extent to restrict analysis by.
PointsInPolygonReportParameters
  boundaryIDField : String
Name of the unique area ID field in the boundaryLayer layer (required).
PointsInPolygonReportParameters
  boundaryLayer : Boundaries
A polygon layer whose areas are used in the report (required).
PointsInPolygonReportParameters
  featureLayer : PointLayer
A point layer containing point features whose locations are tested to lie within areas of the boundaryLayer layer (required).
PointsInPolygonReportParameters
 InheritedoutputReportItem : FolderItem
Configuration options for storing the output report in the repository.
StandardReportParameters
 InheritedoutputTypes : OutputTypes
Task output types.
BATaskParameters
  reportOrientation : ReportOrientation
Orientation of the report.
PointsInPolygonReportParameters
 InheritedresultType : BAResultType
[read-only] Type of the result returned by the task associated with these parameters.
BATaskParameters
 InheritedstandardReportOptions : ReportOptions
Standard report options.
StandardReportParameters
 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 PointsInPolygonReportParameters class.
PointsInPolygonReportParameters
Property Detail
additionalFieldsproperty
additionalFields:Array

Additional fields of the featureLayer layer to be shown in the report. This array should contain String type items.


Implementation
    public function get additionalFields():Array
    public function set additionalFields(value:Array):void
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

boundaryIDFieldproperty 
boundaryIDField:String

Name of the unique area ID field in the boundaryLayer layer (required).


Implementation
    public function get boundaryIDField():String
    public function set boundaryIDField(value:String):void
boundaryLayerproperty 
boundaryLayer:Boundaries

A polygon layer whose areas are used in the report (required).


Implementation
    public function get boundaryLayer():Boundaries
    public function set boundaryLayer(value:Boundaries):void
featureLayerproperty 
featureLayer:PointLayer

A point layer containing point features whose locations are tested to lie within areas of the boundaryLayer layer (required).


Implementation
    public function get featureLayer():PointLayer
    public function set featureLayer(value:PointLayer):void
reportOrientationproperty 
reportOrientation:ReportOrientation

Orientation of the report.

The default value is ReportOrientation.PORTRAIT.


Implementation
    public function get reportOrientation():ReportOrientation
    public function set reportOrientation(value:ReportOrientation):void
Constructor Detail
PointsInPolygonReportParameters()Constructor
public function PointsInPolygonReportParameters()

Creates a new instance of the PointsInPolygonReportParameters class.

Examples
ActionScript to create PointsInPolygonReportParameters and then use in a Points in Polygon Report task:
                     
     var parameters : PointsInPolygonReportParameters = new PointsInPolygonReportParameters();
     
     // The PointLayer type could take either data as type
     // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem,
     // or an array of com.esri.bacore.PointRecord items, e.g.
     //var points:Array = [new PointRecord("store_1", "Store 1", "1", 34.052074, -117.207841)];
     
     // Set stores as an array of PointRecord items.
     parameters.featureLayer = new PointLayer(points);
     
     // The Boundaries type could take either data as type 
     // com.esri.ags.tasks.FeatureSet, com.esri.baserver.FolderItem, or com.esri.bacore.StandardLayer, e.g.
     //var boundaries:BoundaryLayer = new Boundaries(new StandardLayer("US.ZIP5", zipCodesArray));
     
     // Set boundaryLayer with a valid data type.
     parameters.boundaryLayer = boundaries;
     
     // Set name of the unique area ID field in the boundaryLayer layer.
     parameters.boundaryIDField = "ID";
     
     // Set additional fields of the featureLayer layer.
     parameters.additionalFields = ["name"];
     
     // Set report parameters. 
     parameters.standardReportOptions = new ReportOptions("PDF");
      
     pointsInPolygonReportTask.execute(parameters, new Responder(resultHandler, faultHandler));