- URL:
- https://<spatial-analysis-url>/CalculateCompositeIndex
- Methods:
GET
- Version Introduced:
- 11.3
The Calculate Composite Index task combines multiple numeric variables to create a single index.
Learn more about how Calculate Composite Index works
Request URL
https://<analysis url>/CalculateCompositeIndex/submitJob
Request Parameters
Parameter | Description |
---|---|
(Required) | The input table or features containing the variables that will be combined into the index. Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
(Required) | The variables that will be combined to create the index. Provide at least two variables. For each variable, specify the following:
Example:
|
(Optional) | The methods that will be used to scale the Scaling is a type of preprocessing that ensures that the variables are on a compatible scale before they are combined. The scaled variables are then combined to create a single index value. The following options are available:
Values: Default: Example: |
(Optional) | Specifies whether the output index values will be reversed in direction. When true, high index values will be treated as low index values and vice versa. Reversing is applied after combining the scaled variables. Values: Default: Example: |
| The minimum and maximum of the output index values. Specifying a minimum and maximum value will apply minimum-maximum scaling to the combined variables. Example: |
(Optional) | If provided, the task will create a feature service of the results. You define the name of the service. If an Syntax:
You can overwrite an existing feature service by providing the Syntax:
or
|
|
The Context parameter contains the following additional settings that affect task operation:
Syntax:
|
| The response format. The default response format is Values: |
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 the job
to periodically check the status of the job and messages
as described in the topic Check job status. Once the job has successfully completed, use
the job
to retrieve the results. To track the status, you can make a request of the following form:
https://<analysis url>/CalculateCompositeIndex/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>/CalculateCompositeIndex/jobs/<jobId>/results/indexResultLayer?token=<your token>&f=json
Parameter | Description |
---|---|
| The result of Calculate Composite Index is a layer containing the index results. The layer includes the fields containing the input variables after preprocessing (reversing and scaling), the raw index prior to reversing and minimum-maximum scaling, the index value, the index rank, and the index percentile. It also includes fields with the index value reclassified into quantile classes, equal interval classes, and standard deviation classes. Example:
The result has properties for parameter name, data type, and value. The contents of value depends on the
See Feature Output for more information about how the result layer or collection is accessed. |