B U S I N E S S A N A L Y S T 10.2 R E S T R E P O R T T A S K
Points in Polygon Report Endpoint
Creates a report on distribution of points within polygons.
Availability: Business Analyst Server.
http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/PointsInPolygonReport/execute
Specific Parameters
BoundaryIDField (required) |
Name of the unique area ID field in the BoundaryLayer layer. Type string. |
BoundaryLayer (required) |
The polygon layer whose areas are used in the report. Type DataLayer. |
FeatureLayer (required) |
The point layer containing point features whose locations are tested to lay within areas of the BoundaryLayer layer. PointLayer. |
AdditionalFields (optional) |
Additional fields of the FeatureLayer layer. Type array of string. |
AnalysisExtent (optional) |
Data extent to restrict the analysis. Type ExtentData. |
ReportOrientation (optional) |
Orientation of the report. Default orientation is the portrait orientation. Type esriReportOrientation. Default: esriReportOrientationPortrait. |
Other Parameters
OutputType (required) |
Array of task output options. Options for this method include creating a report (GetReport). Type array of TaskOutputType. |
StandardReportOptions (required) |
Report parameters. Type ReportOptions. The TemplateName parameter is ignored. |
ActiveDatasetID (optional) |
ID of the active dataset. Type string. Default: ID of the first available dataset. |
f (optional) |
Response format. Type string. Available formats: HTML, JSON, PJSON, XML. Default: HTML. |
IsFullErrorMessage (optional) |
Mode for composing error messages. Type boolean. Default: false. |
OutputReportItem (optional) |
Configuration options for storing the output report in the repository. This will enable viewing and working with the output result in subsequent tasks. Type esriFolderItem. |
token |
Authentication token. This parameter is required if your Business Analyst Server is secured. Type string. |
Returns
Variable of type TaskResultOutput
Remarks
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.
Example Usage
The example below generates a report on distribution of five customers within a trade area.
{ "results": [ { "paramName":"Points In Polygon Report P.PDF", "dataType":"GPDataFile", "value": { "url":"http://localhost/arcgisoutput/_ags_TE9A2329B74D33997828F533C83A9A.pdf" } } ], "messages": [ ] }
See Also