Gokul Gopan Contact
โ† Back to Projects
QGIS Actions Neighbour Lookup

QGIS Actions โ€” Neighbour Lookup

QGISActionsPythonInteractive GIS

Overview

Custom QGIS Actions to enable interactive neighbour lookups directly from the map canvas. Clicking a feature triggers a Python action that finds and highlights all adjacent features, enabling quick spatial relationship exploration without running separate analysis tools.

Workflow

Follow the process. Expand a step for the details.

  1. 01Action ConfigurationDetails +

    Configured QGIS Layer Actions using the Python action type to intercept feature clicks on the map canvas.

  2. 02Neighbour Query LogicDetails +

    Wrote Python expressions within the action to query spatially adjacent features using QGIS's spatial predicates (touches, intersects) and highlight results on the canvas.

  3. 03Attribute DisplayDetails +

    Configured the action to also open a summary panel showing neighbour attributes for quick inspection.

Tools & Technologies

  • QGIS Layer Actions framework
  • PyQGIS for spatial query logic
  • QGIS Expression Engine

Outcome

Created a reusable QGIS action enabling interactive neighbour lookups without additional tooling, showcasing advanced QGIS customisation and PyQGIS scripting skills.