- URL:
- https://<geoanalytics-url>/SummarizeAttributes
- Methods:
GET
- Version Introduced:
- 10.5
Description
The Summarize
operation takes an input layer and summarizes and calculates statistics for like values. The most basic statistic is the count of features with a specified value, but other statistics can be calculated as well. You can also summarize values into time steps.
For example, if you have a point layer of store locations with a field representing the DISTRICT
and you want to summarize coffee sales by manager, you can specify the DISTRICT
field as the field to dissolve on, and all rows of data representing individual managers will be summarized. This means all store locations managed by Manager1 will be summarized into one row with summary statistics calculated. In this instance, statistics such as the number of stores and the sum of TOTAL
for all stores that Manager1 manages will be calculated as well as for any other manager listed in the DISTRICT
field.
Request parameters
Parameter | Details |
---|---|
| The features that will be summarized. Syntax: As described in Feature input, this parameter can be one of the following:
REST examples
|
| The fields that will be used to summarize like features. For example, if you choose a field named property type with the values of commercial and residential, all the features with property type residential will be summarized together through calculated summary statistics and all of the commercial features will be summarized together the same way. REST examples
|
| This parameter is available at ArcGIS Enterprise 10.9 or later. A numeric value that specifies duration of the time step interval. The default is none. This option is only available if the input points are time enabled and represent an instant in time. REST examples
|
| This parameter is available at ArcGIS Enterprise 10.9 or later. A string that specifies units of the time step interval. The default is none. This option is only available if the input points are time enabled and represent an instant in time. REST examples
|
| This parameter is available at ArcGIS Enterprise 10.9 or later. A numeric value that specifies how often the time step repeat occurs. The default is none. This option is only available if the input points are time enabled and of time type instant. REST examples
|
| This parameter is available at ArcGIS Enterprise 10.9 or later. A string that specifies the temporal unit of the step repeat. The default is none. This option is only available if the input points are time enabled and of time type instant. REST examples
|
| This parameter is available at ArcGIS Enterprise 10.9 or later. A date that specifies the reference time to align the time slices to, represented in milliseconds from epoch. The default is January 1, 1970, at 12:00 a.m. (epoch time stamp 0). This option is only available if the input points are time enabled and of time type instant. REST examples
|
|
A list of field names and statistical summary types you want to calculate. Note that the count is always returned. By default, all statistics are returned. The
REST examples
|
|
The task will create a feature service of the results. You define the name of the service. REST examples
|
| The
|
|
The response format. The default response format is Values: |
Example usage
The following is a sample request URL for Summarize
:
https://webadaptor.domain.com/server/rest/services/System/GeoAnalyticsTools/GPServer/SummarizeAttributes/submitJob?inputLayer={"url": "https://myportal.domain.com/server/rest/services/Hosted/hurricaneTrack/FeatureServer/0", "filter":"Month = 'September'"}&fields=county&outputName=myOutput&f=json
Response
When you submit a request, the service assigns a unique job ID for the transaction.
Syntax:
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
After the initial request is submitted, you can use job
to periodically check the status of the job and messages as described in Check job status. Once the job has successfully completed, use job
to retrieve the results. To track the status, you can make a request of the following form:
https://<analysis url>/SummarizeAttributes/jobs/<jobId>
Access results
When the status of the job request is esri
, you can access the results of the analysis by making a request of the following form:
https://<analysis-url>/SummarizeAttributes/jobs/<jobId>/results/output?token=<your token>&f=json
Response | Description |
---|---|
| The
The result has properties for parameter name, data type, and value. The contents of
See Feature output for more information about how the result layer is accessed. |