# Summarize Within (Standard Feature Analysis)

## Summary

Finds the point, line, or polygon features (or portions of these features) that are within the boundaries of polygons in another layer.

For example

• Given a layer of watershed boundaries and a layer of land-use boundaries by land-use type, calculate total acreage of land-use type for each watershed.
• Given a layer of parcels in a county and a layer of city boundaries, summarize the average value of vacant parcels within each city boundary.
• Given a layer of counties and a layer of roads, summarize the total mileage of roads by road type within each county.

## Usage

• You can think of Summarize Within as taking two layers and stacking them on top of each other. Imagine that the features in one of the layers, the input polygons layer, are all colored red. The other layer, the input summary features, can be any feature type—point, line, or polygon. After stacking these layers on top of each other, you peer down through the stack and count the number of features in the input summary features layer that fall within the polygons with the red boundaries (the input polygons). Not only can you count the number of features, you can calculate simple statistics about the attributes of the features in the input summary features layer, such as sum, mean, minimum, maximum, and so on.

## Parameters

### Derived Output

 Label Explanation Data Type Output Feature Service The output summarized layer. Feature Set Output Group Table If a group by field was provided, the tool will output a table that contains the calculated statistics for each unique group. Record Set

`arcpy.sfa.SummarizeWithin(sumWithinLayer, summaryLayer, outputName, {sumShape}, {shapeUnits}, {summaryFields}, {groupByField}, {minorityMajority}, {percentShape})`

### Derived Output

 Name Explanation Data Type outputLayer The output summarized layer. Feature Set groupBySummaryLayer If a group by field was provided, the tool will output a table that contains the calculated statistics for each unique group. Record Set

## Licensing information

• Basic: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege
• Standard: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege
• Advanced: Requires your account in ArcGIS Enterprise to have the Perform Analysis privilege