The Create Buffers task creates polygons that cover a given distance from a point, line, or polygon feature. Buffers are typically used to create areas that can be further analyzed using a tool such as Overlay Layers.
For example, if the question is "What buildings are within one mile of the school?", the answer can be determined by creating a one-mile buffer around the school and overlaying the buffer with the layer containing building footprints. The result is a layer of those buildings within one mile of the school.
Request URL
http://<analysis url>CreateBuffers/submitJob
Request parameters
Parameter | Description | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
(Required) | The point, line, or polygon features to be buffered. Syntax: As described in detail in the Feature input topic, this parameter can be one of the following:
Examples:
| |||||||||||
(Required if | An array of double values to buffer the input features. You must supply values for either the Examples:
| |||||||||||
(Required if | A field on the Example: | |||||||||||
| The linear unit to be used with the distance values specified in Values: The default is Example: | |||||||||||
| Specifies how overlapping buffers are processed. Values:
Example: | |||||||||||
| Specifies how multiple-distance buffers are processed. Values:
Example: | |||||||||||
| Specifies the side of the line that will be buffered when buffering line features. Typically, this is both sides ( When buffering polygon features, you can specify whether the buffer includes or excludes the polygon being buffered. Values:
Example: | |||||||||||
| The shape of the buffer at the end of line input features. This parameter is not valid for polygon input features. At the ends of lines, the buffer can be rounded (Round) or be straight across (Flat). Values:
Example: | |||||||||||
|
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:
| |||||||||||
| 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 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:
http://<analysis url>/CreateBuffers/jobs/<jobId>
Access the 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>/CreateBuffers/jobs/<jobId>/results/bufferLayer?token=<your token>&f=json
Parameter | Description |
---|---|
| The buffer polygons. Example:
The result has properties for
See Feature output for more information about how the result layer or collection is accessed. |