QGIS | Python
Ujaval Gandhi. (n.d.). from https://www.qgistutorials.com/en/docs/3/getting_started_with_pyqgis.html
> Objective
​
-
This section shows how to work with Python in QGIS
​
> Index / Table of Contents
​
-
Introduction
-
Tutorial(s)
-
QGIS Installation
​
> Summary and Highlights
​
Introduction
Python is a popular programming language that can be used in combination with QGIS, allowing the users to perform more functions and automate some tasks.
​
Tutorial(s)
-
Introduction to Python
Ujaval Gandhi: “Getting Started With Python Programming (QGIS3)”/”Beginnen met programmeren in Python (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/getting_started_with_pyqgis.html
NL: https://www.qgistutorials.com/nl/docs/3/getting_started_with_pyqgis.html -
Run a processing algorithm that calculates the average monthly rainfall for all zip codes in the Seattle area
Ujaval Gandhi: “Running Processing Algorithms via Python (QGIS3)”/” Algoritmes van Processing uitvoeren via Python (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/processing_algorithms_pyqgis.html
NL: https://www.qgistutorials.com/nl/docs/3/processing_algorithms_pyqgis.html -
Write a Python expression function that determines the UTM zone number of a feature and visualise the UTM zone number when hovering over the map
Ujaval Gandhi: “Using Custom Python Expression Functions (QGIS3)”/”Aangepaste Python expressie-functies gebruiken (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/custom_python_functions.html
NL: https://www.qgistutorials.com/nl/docs/3/custom_python_functions.html -
Write a Python script to dissolve a region and calculate the total population in this region
Ujaval Gandhi: “Writing Python Scripts for Processing Framework (QGIS3)”/”Python-scripts schrijven voor framework Processing (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/processing_python_scripts.html
NL: https://www.qgistutorials.com/nl/docs/3/processing_python_scripts.html -
Build a Python plugin that enables to select vector layers and write their attributes to a CSV file
Ujaval Gandhi: “Building a Python Plugin (QGIS3)”/”Een plug-in in Python bouwen (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/building_a_python_plugin.html
NL: https://www.qgistutorials.com/nl/docs/3/building_a_python_plugin.html -
Build a processing plugin that enables to select vector layers and write their attributes to a CSV file
Ujaval Gandhi: “Building a Processing Plugin (QGIS3)”/” Een plug-in voor Processing bouwen (QGIS3)”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/3/processing_python_plugin.html
NL: https://www.qgistutorials.com/nl/docs/3/processing_python_plugin.html -
Write a Python script that downloads a shapefile and run topological cleaning operations on a daily basis
Ujaval Gandhi: “Running and Scheduling QGIS Processing Jobs”/”Taken voor QGIS uitvoeren en in schema zetten”
Language(s): English, Dutch
Chapters: overview of the task, get the data, procedure
EN: https://www.qgistutorials.com/en/docs/running_qgis_jobs.html
NL: https://www.qgistutorials.com/nl/docs/running_qgis_jobs.html -
PyQGIS tutorial and reference guide
PyQGIS Developer Cookbook
Language(s): English
Chapters: introduction, loading projects, loading layers, accessing the table of contents (TOC), using raster layers, using vector layers, geometry handling, projections support, using the map canvas, map rendering and printing, expressions, filtering and calculating values, reading and storing settings, communicating with the user, authentication infrastructure, tasks – doing heavy work in the background, developing Python plugins, writing a processing plugin, using plugin layers, network analysis library, QGIS server and python, cheat sheet for PyQGIS
https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/intro.html
​
> QGIS Installation
Do you still need to install QGIS? The QGIS installation and update section explains how to install QGIS on Windows and macOS.
Useful Links
​
Ujaval Gandhi (QGIS Tutorials and Tips website)
​
​
#QGIS, #Python, #PyQGIS plugin