Overlay Layers

The Overlay Layers task combines two or more layers into one single layer. You can think of overlay as peering through a stack of maps and creating a single map containing all the information found in the stack. Overlay is used to answer one of the most basic questions of geography: What is on top of what? The following are examples:
- What parcels are within the 100-year floodplain? ("Within" is another way of saying "on top of.")
- What land use is within what soil type?
- What mines are within abandoned military bases?
Note:Overlay Layers was introduced in ArcGIS Enterprise 10.6.1.
Note:Sliver features may be excluded based on the tolerance of the processing spatial reference.
Request URL
http://<analysis url>/OverlayLayers/submitJob
Request parameters
Parameter | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inputLayer (Required) | The point, line, or polygon features that will be overlaid with the overlayLayer features. Syntax: As described in Feature input, this parameter can be one of the following:
REST web example:
REST scripting example:
| ||||||||||||||
overlayLayer (Required) | The features that will be overlaid with the inputLayer features. Syntax: As described in Feature input, this parameter can be one of the following:
| ||||||||||||||
overlayType | The type of overlay to be performed. Values: Intersect | Erase The following table outlines the overlay relationships supported at 10.6 and 10.6.1.
The following table outlines the overlay relationships supported at 10.7 and later.
REST web example: Intersect REST scripting example: "overlapType": "Erase" | ||||||||||||||
includeOverlaps | Determines whether input features in the same dataset contain any overlapping features. The default is true. This option should only be modified if you're not interested in self-intersection between features for the input layer and self-intersection between features for the overlay layer. Setting this value to false will improve performance. This parameter is only used when includeOverlaps is Intersect with 10.6 and 10.6.1. Values: true| false REST web example: Intersect REST scripting example: "includeOverlaps": "Intersect" | ||||||||||||||
outputName | The task will create a feature service of the results. You define the name of the service. REST web example: myOutput REST scripting example: "outputName" : "myOutput" | ||||||||||||||
context | The context parameter contains additional settings that affect task execution. For this task, there are four settings:
Syntax: | ||||||||||||||
f | The response format. The default response format is html. Values: html | json |
Response
When you submit a request, the service assigns a unique job ID for the transaction.
{
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
}
After the initial request is submitted, you can use jobId to periodically check the status of the job and messages as described in Checking job status. Once the job has successfully completed, use jobId to retrieve the results. To track the status, you can make a request of the following form:
https://<analysis url>/OverlayLayers/jobs/<jobId>
Access results
When the status of the job request is esriJobSucceeded, you can access the results of the analysis by making a request of the following form:
http://<analysis url>/OverlayLayers/jobs/<jobId>/results/output?token=<your token>&f=json
Parameter | Description |
|---|---|
output |
The features that are the result of the overlay. The type of feature (point, line, or polygon) depends on the input layers. Request example: The result has properties for parameter name, data type, and value. The contents of value depend on the outputName parameter provided in the initial request. The value contains the URL of the feature service layer. See Feature output for more information about how the result layer is accessed. |