Buffer

Title  Buffer

Summary

Geoprocessing tool that creates buffer polygons around input features to a specified distance.


Illustration

Buffer illustration Buffer illustration

Usage


Syntax

Parameter Explanation
in_features

The input point, line, or polygon features to be buffered.

out_feature_class

The feature class containing the output buffers.

buffer_distance_or_field

The distance around the input features that will be buffered. Distances can be provided as either a value representing a linear distance or as a field from the input features that contains the distance to buffer each feature.

If linear units are not specified or are entered as Unknown, the linear unit of the input features' spatial reference is used.

line_side (Optional)

Specifies the sides of the input features that will be buffered.

  • FULL—For line input features, buffers will be generated on both sides of the line. For polygon input features, buffers will be generated around the polygon and will contain and overlap the area of the input features. For point input features, buffers will be generated around the point. This is the default.
  • LEFT—For line input features, buffers will be generated on the topological left of the line. This option is not valid for polygon input features.
  • RIGHT—For line input features, buffers will be generated on the topological right of the line. This option is not valid for polygon input features.
  • OUTSIDE_ONLY—For polygon input features, buffers will be generated outside the input polygon only (the area inside the input polygon will be erased from the output buffer). This option is not valid for line input features.

This optional parameter is not available with a Desktop Basic or Desktop Standard license.

line_end_type (Optional)

Specifies the shape of the buffer at the end of line input features. This parameter is not valid for polygon input features.

  • ROUND—The ends of the buffer will be round, in the shape of a half circle. This is the default.
  • FLAT—The ends of the buffer will be flat, or squared, and will end at the endpoint of the input line feature.

This optional parameter is not available with a Desktop Basic or Desktop Standard license.

dissolve_option (Optional)

Specifies the type of dissolve to be performed to remove buffer overlap.

  • NONE—An individual buffer for each feature is maintained, regardless of overlap. This is the default.
  • ALL—All buffers are dissolved together into a single feature, removing any overlap.
  • LIST—Any buffers sharing attribute values in the listed fields (carried over from the input features) are dissolved.
dissolve_field (Optional)

The list of fields from the input features on which to dissolve the output buffers. Any buffers sharing attribute values in the listed fields (carried over from the input features) are dissolved.

The Add Field button, which is only used in ModelBuilder, allows expected fields to be added to the Dissolve Field(s) list.

method (Optional)

Specifies the method to use, planar or geodesic, to create the buffer.

  • PLANAR—If the input features are in a projected coordinate system, Euclidean buffers are created. If the input features are in a geographic coordinate system and the buffer distance is in linear units (meters, feet, and so forth, as opposed to angular units such as degrees), geodesic buffers are created. This is the default. You can use the Output Coordinate System environment setting to specify the coordinate system to use. For example, if your input features are in a projected coordinate system, you can set the environment to a geographic coordinate system to create geodesic buffers.
  • GEODESIC—All buffers are created using a shape-preserving geodesic buffer method, regardless of the input coordinate system.

Code Samples

Buffer example 1 (Python window)

The following Python window script demonstrates how to use the Buffer tool.


import arcpy
arcpy.env.workspace = "C:/data"
arcpy.Buffer_analysis("roads", "C:/output/majorrdsBuffered", "100 Feet", "FULL", 
                      "ROUND", "LIST", "Distance")

                    

Buffer example 2 (stand-alone script)

Find areas of suitable vegetation that exclude areas heavily impacted by major roads.


# Name: Buffer.py
# Description: Find areas of suitable vegetation which exclude areas heavily 
# impacted by major roads

# import system modules 
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data/Habitat_Analysis.gdb"

# Select suitable vegetation patches from all vegetation
veg = "vegtype"
suitableVeg = "C:/output/Output.gdb/suitable_vegetation"
whereClause = "HABITAT = 1" 
arcpy.Select_analysis(veg, suitableVeg, whereClause)

# Buffer areas of impact around major roads
roads = "majorrds"
roadsBuffer = "C:/output/Output.gdb/buffer_output"
distanceField = "Distance"
sideType = "FULL"
endType = "ROUND"
dissolveType = "LIST"
dissolveField = "Distance"
arcpy.Buffer_analysis(roads, roadsBuffer, distanceField, sideType, endType, 
                      dissolveType, dissolveField)

# Erase areas of impact around major roads from the suitable vegetation patches
eraseOutput = "C:/output/Output.gdb/suitable_vegetation_minus_roads"
xyTol = "1 Meters"
arcpy.Erase_analysis(suitableVeg, roadsBuffer, eraseOutput, xyTol)

                    

Tags

Credits

Use limitations