QGIS Script Bundle · 4 Scripts
GIS Utilities Pack
Four general-purpose Python scripts for the QGIS Script Editor covering the everyday operations that slow you down when done manually — buffering features, applying graduated colour styles, creating print-ready map layouts, and generating survey grids.
Each script is a single .py file. No plugins, no extra setup beyond standard QGIS. The kind of tools you reach for on every project.
What you get
buffer_active_layer.py classify_layer.py create_map_layout.py grid_generation.py What the pack covers
Buffer any layer
Expand points or polygons by any radius in metres. Useful for defining influence zones, setback distances, or proximity areas around features.
Graduated colour style
One command to rank any numeric field visually — yellow to green. Choose equal intervals or percentile quartiles. Applies immediately to the layer renderer.
Print-ready A4 layout
Auto-generates scale bar, north arrow, date title, and legend from the current canvas. Outputs directly into QGIS Layout Designer for PDF export.
Survey grid generation
Creates equal-sized rectangular cells clipped to your study boundary. Works in any CRS — auto-converts to UTM so your cell size setting is always in metres.
Scripts in this pack
buffer_active_layer.py Buffer Active Layer
Buffers 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 input file and loaded into the project.
classify_layer.py Graduated Colour Classification
Applies a yellow → green graduated colour style to any numeric attribute column on a vector layer. Two methods: "discrete" (equal-width steps of 0.1) and "percentile" (four quartiles). No output file — applies style in-place.
create_map_layout.py A4 Map Layout
Creates a print-ready A4 map layout from the current QGIS canvas view. Auto-adds scale bar, north arrow, date title, and a legend for all visible vector layers. Opens in Layout Designer for final adjustments before PDF export.
grid_generation.py Rectangular Survey Grid
Creates a regular grid of equal-sized rectangular cells. If polygon layers are checked, the grid is clipped to their combined shape. Auto-detects geographic CRS and reprojects to UTM so cell size is in real metres.
Who it's for
- GIS professionals who run the same buffer, classify, or grid operations on every project and want them automated
- Drone surveyors who need to produce client-ready PDF map reports quickly without manual layout work
- Anyone setting up field survey grids for sample plots, trial sites, or inspection zones
Requirements
How to use it
- 1
Load your vector and raster layers into QGIS.
- 2
Select the layer you want to process as the active layer, or check (tick) layers as the script expects.
- 3
Open Plugins → Python Console → Show Editor.
- 4
Open the script — each has a
HOW TO USEblock at the top with exact input requirements. - 5
Set parameters at the bottom of the script: buffer radius, column name, grid cell size, or layout orientation.
- 6
Click Run.
Built-in instructions in every script
Each script has a HOW TO USE block at the top
documenting the active layer, checked layers, output, log path, and configurable parameters — so the
reference is always in the file, not in a separate document.
Get the GIS Utilities Pack
Four scripts, one download. The GIS operations you run on every project — automated.