How to create custom functions in QGIS using the Function Editor

After having tried to explain in a simple way some Basic rules for writing Python scripts for Processing Toolbox in QGIS, this time we will discover the basic rules for writing custom functions in QGIS using the Function Editor. QGIS allows the definition of user-defined expression functions (in Python or C++) from the Function Editor tab […]

Read more "How to create custom functions in QGIS using the Function Editor"

How to invert lon/lat coordinates in QGIS using Python

This task is based on my answer to this question from gis.stackexchange.com. Sometimes it happens that, when importing external files in QGIS (typically .CSV files), the fields specifying the longitude and latitude coordinates are accidentally inverted: this behavior will produce a different result in respect of the desired output. If we don’t want to repeat the same procedure, we may run a […]

Read more "How to invert lon/lat coordinates in QGIS using Python"