
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.
C# | ![]() |
---|---|
PointsInPolygonReportParameters parameters = new PointsInPolygonReportParameters(); // The PointLayer type could take either data as // ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem, // or a list of ESRI.ArcGIS.Client.BACore.PointRecord items, e.g. //List<PointRecord> points = new List<PointRecord>() { // new PointRecord("Store 1", "Steiner St. & Geary Blvd", "1", 37.78415, -122.4346)}; // Set FeatureLayer as a list of PointRecord using implicit cast operator. parameters.FeatureLayer = points; // The Boundaries type could take either data as // ESRI.ArcGIS.Client.Tasks.FeatureSet, ESRI.ArcGIS.Client.BAServer.FolderItem, // or ESRI.ArcGIS.Client.BACore.StandardLayer, e.g. //Boundaries boundaries = 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 = new List<string>(){ "name" }; // Set report parameters. parameters.StandardReportOptions = new ReportOptions("PDF"); pointsInPolygonReportTask.ExecuteAsync(parameters, new AsyncResponder(resultHandler, faultHandler)); |
System.Object
ESRI.ArcGIS.Client.BACore.Client.BATaskParameters
ESRI.ArcGIS.Client.BACore.Client.StandardReportParameters
ESRI.ArcGIS.Client.BAServer.Tasks.StandardReportParameters
ESRI.ArcGIS.Client.BAServer.Tasks.Reports.PointsInPolygonReportParameters
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family