A center and dispersion analysis resulting in new layers that contain the center, mean, median, and ellipse of beetle infestations.
What is a center and dispersion analysis?
A center and dispersion analysis is the process of finding center features and directional distribution in feature data. It calculates the central, mean center, median center, or ellipse of features. To execute the analysis, use the spatial analysis service and the SummarizeCenterAndDispersion operation.
Real-world examples of this analysis include the following:
Finding the directional distribution of pest infestations.
Selecting the best place to open a library or other point of interest.
Finding the center of incidents of traffic crashes or crimes.
How to perform a center and dispersion analysis?
The general steps to performing summarize center and dispersion analysis are as follows:
Review the parameters for the SummarizeCenterAndDispersion operation.
Send a request to get the spatial analysis service URL.
Execute a job request with the following URL and parameters:
The size of the output ellipse in standard deviations. The default ellipse size is 1. Valid choices are 1, 2, or 3 standard deviations.
"ellipseSize": "3 standard deviations"
weightField
A numeric field in the analysisLayer to be used to weight locations according to their relative importance.
outputName
A string representing the name of the hosted feature layer to return with the results. NOTE: If you do not include this parameter, the results are returned as a feature collection (JSON).
{"serviceProperties": {"name": "<SERVICE_NAME>"}}
Example
Find the center of beetle infestation
This example uses the SummarizeCenterAndDispersion operation to find the mean and median points, as well as the directional distribution, of a douglas fir beetle infestation between the years 2020-2022.
The analysisLayer value is the Pest infestation hosted feature layer that is filtered by the type of beetle and the year. The summarizeType parameter is set to find the CentralFeature, MeanCenter, MedianCenter, and Ellipse. The analysis is weighted by the number of trees (NUM_TREES).
Summarize center and dispersion revealing statistical characteristics of forest infestation.
APIs
ArcGIS API for PythonArcGIS API for PythonArcGIS REST JS
Learn how to perform related analyses interactively with Map Viewer and programmatically with ArcGIS API for Python, ArcGIS REST JS, and ArcGIS REST API.