QGIS Script · Python
Buffer Active Layer
Expands every feature in the active layer outward by a configurable radius in metres. Works on both point and polygon geometry — output saved as GeoJSON alongside the source file and loaded into the QGIS project immediately.
What you get
buffer_active_layer.pyWhat it does
Any point or polygon input
Works on both point geometry (produces circles) and polygon geometry (produces rounded outward expansion).
Configurable radius
Set buffer_radius in metres at the bottom of the script — no hardcoded values.
GeoJSON output
The buffered layer is saved as {input_name}_buffered.geojson in the same directory as the source file.
Auto-loads in QGIS
The output is added to your QGIS project immediately with original attributes preserved.
How to use it
- 1
Load your vector layer and click it to make it the active layer in the Layers panel.
- 2
Open Plugins → Python Console → Show Editor.
- 3
Paste the script. At the bottom, set
buffer_radiusin metres. - 4
Click Run.
Requirements
- QGIS 3.28 or newer
- QGIS processing framework — bundled
- Active point or polygon layer
Also in the GIS Utilities Pack
Get all 4 GIS utility scripts for $25 — save $5 vs buying individually.