The Join
task works with two layers and joins the attributes from one feature to another based on spatial and attribute relationships.
Request URL
http://<analysis url>/JoinFeatures/SubmitJob
Request parameters
Parameter | Description |
---|---|
(Required) | The point, line, polygon, or table layer that will have attributes from the Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
|
(Required) | The point, line, polygon, or table layer that will be joined to the Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
|
| Specifies the spatial relationship that will be used to spatially join features. Values: |
(Required if | A double value used for the search distance to determine if the Examples:
|
(Required if | The linear unit to be used with the distance value specified in Values: |
| The attribute relationship used to join features. Features are matched when the field values in the join layer are equal to the field values in the target layer. Syntax:
Examples:
|
| A string representing the type of join that will be applied:
Values: |
| A list of field names and statistical summary types that will be calculated. The count is always returned when you calculate a statistic. Syntax:
Example:
In ArcGIS Online or ArcGIS Enterprise 11.2 and later, you can calculate the count only. To only calculate the count, specify the count statistic without a field: Example:
|
| The feature from the The Syntax:
Examples:
|
|
If provided, the task will create a feature service of the results. You define the name of the service. If an Syntax:
In ArcGIS Online or ArcGIS Enterprise 10.9.1 and later, 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:
|
| Specifies the type of join that will be used to determine which target features are returned:
|
| 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
value to periodically check the status of the job and messages as described in Check job status. Once the job has successfully completed, use the job
value to retrieve the results. To track the status, you can make a request of the following form:
http://<analysis url>/JoinFeatures/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:
http://<analysis url>/JoinFeatures/jobs/<jobId>/results/outputLayer?token=<your token>&f=json
Parameter | Description |
---|---|
| The The
The result polygon features will have two attributes, Example:
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 or collection is accessed. |