This tool can be used to identify an area of interest within a specified distance of features in a vector data set. For the equivalent operation performed on a raster data set, see the Buffer (Raster) tool. The two tools differ significantly in their implementations.
The user must specify the input vector file, the output vector file name, and the desired buffer size. Buffer size units are the same as the map X-Y units.
Larger vector coverages or files containing complex features may take considerable time to perform the buffer operation so be patient. The progress bar will not be updated during the buffering process.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.shp"
outputFile = wd + "output.shp"
bufferSize = "500.0"
args = [inputFile, outputFile, bufferSize]
pluginHost.runPlugin("BufferVector", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.shp"
def outputFile = wd + "output.shp"
def bufferSize = "500.0"
String args = [inputFile, outputFile, bufferSize]
pluginHost.runPlugin("BufferVector", args, false)