Note:
Some workflows may require specific privileges. For more information about user types, roles, and privileges, see the Accounts topic.
The Spatial aggregation tool calculates statistics in areas where an input layer overlaps a boundary layer and summarizes features such as points, lines, and polygons within designated areas.
The output is a hosted feature layer, an optional hosted table layer, and an optional group by summary table. See Spatial aggregation to learn more.
To use Spatial aggregation , complete the following steps:
- From the map tools, click Analysis
.
The analysis tools appear. The Measure tab is active by default.
- Click the Spatial aggregation tab
.
- Populate the following parameters:
- Layer to summarize—The layer that will be summarized.
- Summary area type—Specifies the type of boundaries in which the features will be summarized. Options are Polygon layer, Square bins, and Hexagon bins.
- Bin size—The size of the generated bins. For square bins, the value is equal to the height and width of the bins. For hexagon bins, the value determines the distance between parallel sides. This parameter is available when Square bins or Hexagon bins is specified for Summary area type.
Note:
When Polygon layer is specified for Summary area type, the Summary polygon layer drop-down menu appears. You can select the Boundary layer from this drop-down.
- Calculate statistics—Use to help you determine which number or date fields from the input layer to summarize. Supported summary statistics include sum, minimum, maximum, mean, and standard deviation. The statistics are calculated for each boundary separately.
Note:
Date fields support maximum and minimum. Number fields support sum, minimum, maximum, mean, and standard deviation. String fields are not supported.
- Keep areas with no points—Specifies the areas that are included in the result layer. If checked (default), all generated bins or input polygons are returned, including those that do not overlap input points. If unchecked, bins or polygons with no summarized points are removed from the output.
Note:
Currently, this parameter is only available when the Layer to summarize value is a point layer. Summarizing lines or polygons is not supported with this parameter.
- Result layer name—The name of the layer that is created and displayed. The name must be unique. If a layer with the same name already exists in your organization, the tool fails and you are prompted to use a different name. This is a required parameter.
- Click Run.
The result dataset is saved as a layer to the map and to the Layers list and as a hosted feature service to your organizational account.
The Save result layer to ArcGIS toggle is on by default, which saves the layer to your ArcGIS Online or ArcGIS Enterprise content. Optionally, if the toggle button is turned off, the layer is only added to the Layers list as a temporary feature layer
.
- Provide a name in Save in folder to save the result in a folder of the same name in My content.