AggregatePoints

Title  AggregatePoints

Summary

Aggregate points task allows you to aggregate or count the total number of points that are distributed within specified areas or boundaries (polygons). You can also summarize Sum, Mean, Min, Max and Standard deviation calculations for attributes of the point layer to understand the general characteristics of aggregated points.


Usage

Syntax

Parameter Explanation
pointLayer

Point layer to be aggregated

polygonLayer

Polygon layer to which the points should be aggregated.

keepBoundariesWithNoPoints (Optional)

Specify whether the polygons without any points should be returned in the output.

summaryFields (Optional)

A list of field names and summary type. Example [“fieldName1 summaryType1”,”fieldName2 summaryType2”].

groupByField (Optional)

A field name from PointLayer based on which the points will be grouped.

minorityMajority (Optional)

This boolean parameter is applicable only when a groupByField is specified. If true, the minority (least dominant) or the majority (most dominant) attribute values within each group, within each boundary will be calculated.

percentPoints (Optional)

This boolean parameter is applicable only when a groupByField is specified. If set to true, the percentage count of points for each unique groupByField value is calculated.

outputName (Optional)

Additional properties such as output feature service name.

context (Optional)

Additional settings such as processing extent and output spatial reference.

Code Samples

Tags

Aggregate Points

Credits

Use limitations