Buffers in QGIS
If you are looking to create geographical buffers in QGIS, this guide walks through every step of creating buffers, what to consider, and how to work with the results.
What is a buffer?
In the GIS and geospatial context, a buffer refers to a zone or an area around a vector feature that is derived from a set distance or radius measurement.
The buffer is a polygon and it can be created around points, lines, or polygons. Buffers are used for various spatial analyses such as proximity analysis and overlay analysis.
For example, creating a buffer around a point feature such as an oil well could be used to determine the area that would be affected by a spill from the well. Additionally, creating a buffer around a line feature such as a road could be used to determine the area that would be impacted by the construction of a new road.
Negative and Positive Buffers
Buffers are typically thought of as growing or expanding the original feature, creating a new area around it. It is also possible to create negative buffers.
A negative buffer refers to a zone or an area created around a feature by specifying a negative distance value when using the buffer tool. This creates a buffer that erodes or shrinks the original feature, creating a new area that is smaller than the original feature.
Negative buffers can only be applied to polygon features. Because polygons are defined by a set of points and lines that enclose an area, it is possible to shrink the polygon by specifying a negative buffer distance.
Positive buffers can be applied to point, line, and polygon features, and negative buffers can only be applied to polygon features.
It is important to note that the resulting buffers (positive or negative) may not always be valid geometry and may result in self-intersecting polygons or other geometry issues, depending on the topology of the input feature and the size and location of the buffer distance.
Step-by-step process for buffering features in QGIS
- Open your QGIS project and add the layer containing the features you want to buffer.
- Select the Vector menu, then Geoprocessing Tools, and then Buffer.
- In the Buffer dialog box, select the layer containing the features you want to buffer from the Input layer drop-down menu.
- Specify the buffer distance in the Distance field. The distance will be in the units of the coordinate system of the input layer.
- If needed, change the unit of measurement for the buffer distance using the units selector next to the distance field.
- Choose the number of segments to use when approximating curves in the buffer from the Segments field.
- Choose the type of join style for the buffer — for example, round, mitre, or bevel.
- Choose the output option from the Buffered field. You can choose to save the buffer as a new layer or to a new file.
- Click the Run button to execute the buffer tool.
- Once the buffer process is complete, the new layer containing the buffered features will be added to your QGIS project. You can now use this layer for further analysis or to display the buffer zone on a map.
It is important to note that you can buffer multiple layers at once using this tool. You can also use the Advanced button to access additional options, such as dissolving the buffer or using a different field to calculate the buffer distance.
The coordinate system can have an effect on the buffering process
When buffering vector features, the buffer distance is typically specified in the units of the coordinate system that the features are in.
For example, if the features are in a projected coordinate system with units of meters, the buffer distance will also be in meters.
However, if the features are in a geographic coordinate system with units of degrees, the buffer distance will also be in degrees. This can result in a buffer that is larger or smaller than intended, depending on the location of the features on the Earth’s surface.
Buffering pixels in QGIS
It is possible to buffer pixels in a raster image, but the process is slightly different from buffering vector features.
In QGIS, you can use the Processing Toolbox > GRASS > r.buffer tool to create a buffer around pixels in a raster image. This tool creates a new raster image where the buffered pixels are assigned a new value, such as a constant value or the average of the surrounding pixels.
Alternatively, you can use the Raster > Raster Calculator tool to create a buffer around pixels using a mathematical expression. This allows you to create a buffer based on the values of the surrounding pixels, such as a moving average or standard deviation.
It is important to note that buffering pixels in a raster image will result in a new raster image, and the output will have the same number of pixels as the input, but the values of the pixels will be different.
QGIS Buffer FAQs
How do I buffer multiple features at once?
You can use the u0022Bufferu0022 tool in QGIS to buffer multiple features at once by selecting multiple features or by specifying a layer that contains multiple features.
Can I buffer features to a specific shape or pattern?
Yes, you can buffer features to different shapes or patterns using the following tools: u0022Create Wedge Buffersu0022, u0022Multi-ring buffersu0022, u0022Rectangles, Ovals, Diamondsu0022, u0022Single-sided buffersu0022, u0022Tapered bufferu0022, or u0022Variable width bufferu0022.
Can I create a buffer with variable widths?
Yes, you can create a buffer with variable widths by using the u0022Multi-ring buffersu0022 or u0022Variable width bufferu0022 tool in QGIS. This allows you to specify different buffer distances for different features or different parts of a feature.
Can I buffer features in a specific projection?
Yes, you can buffer features in a specific projection by first projecting the features to the desired projection and then using the buffer tool.
How do I dissolve the buffer?
Once you have created the buffer, you can use the u0022Dissolveu0022 tool in QGIS to merge buffer polygons that share the same attributes into one larger polygon.






