## Summarize Within

##

This tool finds features (and portions of features) that are within the boundaries of areas in the first input layer.

- Given a layer of watershed boundaries and a layer of land-use boundaries, 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.

If Use current map extent is checked, only those features in the input layer and the layer to be summarized that are visible within the current map extent will be analyzed. If unchecked, all features in both the input layer and the layer to be summarized will be analyzed, even if they are outside the current map extent.

## Choose area layer to summarize other features within its boundaries

The area layer that will be used to summarize features that fall within its boundaries. You can choose to summarize within a polygon layer that you provide or within square or hexagon bins that are generated when the tool runs. When generating bins, for Square, the number and units specified determine the height and length of the square. For Hexagon, the number and units specified determine the distance between parallel sides.

Analysis using Square or Hexagon bins requires a projected coordinate system. You can set the Processing coordinate system in Analysis Environments. If your processing coordinate system is not set to a projected coordinate system, you will be prompted to set it when you Run Analysis.

In addition to choosing a layer from your map, you can choose Browse Layers at the bottom of the drop-down list to browse to your contents for a big data file share dataset or feature layer.

## Choose layer to summarize

Features in this layer that fall within the boundaries of features in the input layer, or bins specified above, will be summarized.

In addition to choosing a layer from your map, you can choose Browse Layers at the bottom of the drop-down list to browse to your contents for a big data file share dataset or feature layer.

## Choose a distance to generate bins and aggregate into

The distance used to generate bins.

Either the Bin Size for bins or an Area Layer must be set.

## Aggregate using time slices (optional)

If time is enabled on the input point layer and it is of type instant, you can analyze using time stepping. There are three parameters you can set when you use time:

- Time step interval
- How often to repeat the time step
- Time to align the time steps to

Imagine you had data that represented a year in time and you wanted to analyze using weekly steps. To do that you would set Time step interval to `1 week`.

Imagine you had data that represented a year in time and you wanted to analyze using the first week of the month. To do that you would set Time step interval to `1 week`, How often to repeat the time step to `1 month`, and Time to align the time steps to to `January 1, at 12:00 am`.

## Time interval to be aggregate into

Interval of time used for generating time steps. Time step interval may be used alone or used with the How often to repeat the time step or Time to align the time steps to parameters.

If you wanted to create time slices that took place every Monday from 9:00 a.m. until 10:00 a.m., Time step interval would be `1 hour`, How often to repeat the time step would be `1 week`, and Time to align the time steps to would be `9:00:00 a.m. on a Monday`.

## Time step to be aggregate into

The step used for calculating a time slice. How often to repeat the time step may be used alone or with Time step interval, with Reference Time, or with both Time step interval and Time to align the time steps to.

If you wanted to create time slices that took place every Monday from 9:00 a.m. until 10:00 a.m., Time step interval would be `1 hour`, How often to repeat the time step would be `1 week`, and Time to align the time steps to would be `9:00:00 a.m. on a Monday`.

## Reference time used to align the time slicing

The date and time used to align time slicing. Time stepping will start from and continue backward from this time. If no reference time is selected, time stepping will align to January 1st, 1970.

If you wanted to create time slices that took place every Monday from 9:00 a.m. until 10:00 a.m., Time step interval would be `1 hour`, How often to repeat the time step would be `1 week`, and Time to align the time steps to would be `9:00:00 a.m. on a Monday`.

## Add statistics (optional)

You can calculate statistics on features that are summarized. On numeric fields you can calculate the following:

- Count—Calculates the number of nonnull values. Can be used on numeric fields or strings. The count of [null, 0, 2] is 2.
- Sum—The sum of numeric values in a field. The sum of [null, null, 3] is 3.
- Mean—The mean of numeric values. The mean of [0, 2, null] is 1.
- Min—The minimum value of a numeric field. The minimum of [0, 2, null] is 0.
- Max—The maximum value of a numeric field. The maximum value of [0, 2, null] is 2.
- Range—The range of a numeric field. This is calculated as the minimum values subtracted from the maximum value. The range of [0, null, 1] is 1. The range of [null, 4] is 0.
- Variance—The variance of a numeric field in a track. The variance of [1] is null. The variance of [null, 1,1,1] is 1.
- Standard deviation—The standard deviation of a numeric field. The standard deviation of [1] is null. The standard deviation of [null, 1,1,1] is 1.

On string fields you can calculate the following:

- Count—The number of nonnull strings.
- Any—This statistic is a random sample of a string value in the specified field.

All statistics are calculated on nonnull values. The resulting layer will contain a new field for each statistic calculated. Any number of statistics can be added by choosing an attribute and statistic.

In addition to these statistics, proportional statistics will be calculated on all numeric fields:

- Count—The count of each field multiplied by the proportion of the summary layer within the polygons.
- Sum—The sum of weighted of values in each field. Where the weight applied is the proportion of the summary layer within the polygons.
- Mean—The weighted mean of values in each field. Where the weight applied is the proportion of the summary layer within the polygons.
- Min—The minimum of weighted values in each field. Where the weight applied is the proportion of the summary layer within the polygons.
- Max—The maximum of weighted values in each field. Where the weight applied is the proportion of the summary layer within the polygons.
- Range—The difference between the maximum and minimum weighted values.

Depending on the types of features you are summarizing, the total count of nearby points, total length of lines, or total area will be calculated.

## SpatialReference (wkid)

This is a temporary parameter for prerelease to set the processing spatial reference. Many big data tools require that a projected coordinate system is used as the spatial reference for processing. By default, the tool will use the input coordinate system but will fail if it's a geographic coordinate system. To set a projected coordinate system, enter the WKID. For example, Web Mercator would be entered as `3857`.

## Choose datastore

GeoAnalytics results are stores to an ArcGIS Data Store and exposed as a feature layer in Portal for ArcGIS. In most cases, results should be stored to the spatiotemporal data store and this is the default. In some cases saving results to the relational data store is a good option. The following are reasons why you may want to store results in the relational data store:

- Use results in portal to portal collaboration.
- Enable sync capabilities with your results.

You should not use the relational data store if you expect your GeoAnalytics results to increase, and need to take advantage of the spatiotemporal big data store's capabilities to handle large amounts of data.

## Result layer name

This is the name of the layer that will be created in My Content and added to the map. The default name is based on the tool name and the input layer name. If the layer already exists, the tool will fail.

Using the Save result in drop-down box, you can specify the name of a folder in My Content where the result will be saved.