QGIS Actions
Ujaval Gandhi
ujaval@spatialthoughts.com
PyQGIS Masterclass
What are QGIS Actions?
When should you use an action?
Use actions to add custom functionality where you need to do something in response to a user action on a layer.
Actions are ‘baby plugins’!
Many QGIS customizations can be an Action instead of a plugin.
Actions provide you with an built-in functionality to
What can you do with Actions?
Extract a Feature from a Layer
Select Features
Update Field Values
Load and Remove Raster Layers
Select Features in a Buffer Zone
Reverse Line Direction
Run Processing Algorithms
View Panorama from Mapillary
Action Basics
Action Scopes
An action scope defines where the action is shown.
Depending on the scope, the action code has access to additional variables.
Action Scopes
Fields and Variables
Let’s build some actions
Resources