
Learn to automate GIS tasks with Python and PyQGIS, including programmatic layer management, access to layer geometry, and a zonal statistics script to recreate workflows with a click.
Install QGIS using express, network, or standalone installers, showing how to download, run the installer, and select options. Then open QGIS to use the plugins and Python console for PyQGIS.
Explore how to navigate PyQGIS documentation and the Python API, including the developer cookbook, to learn about vector layers, imports, and basic layer handling.
Open the Python console in QGIS, experiment with print and math, use the editor to write and run scripts, and prepare to import two layers via the API.
Use the python interface in PyQGIS to import two vector layers named states and places into the QGIS project. Adjust layer names and order to display them correctly.
Learn how to save a vector layer to a variable in PyQGIS, inspect its capabilities, and use the documentation to add features, manage attributes, and load changes into the interface.
add and remove layers by name in a pyqgis project, update the table of contents, and troubleshoot common issues when modifying the map layers list.
Learn to use the PyQGIS Python API to get a layer’s file name and data source, then loop through its fields to print each field’s name and type.
Learn how to access feature attribute values in PyQGIS by loading a roads layer, counting features, and looping to extract and print specific fields such as full name.
Learn how to get features and geometry information for each feature in a vector layer, using get_features, looping through features, and inspecting geometry as a collection of points and coordinates.
Learn to build a cities layer from polygons and create point, polygon, and line layers programmatically in PyQGIS, then apply buffers using the Python console.
Learn to automate GIS tasks in QGIS with Python using the PyQGIS API. This course will get you started on learning how to use Python code to increase your GIS efficiency. You will be able to run complex workflows with the click of a button instead of clicking through multiple tools to recreate results. The skills learned in this course will also help you develop custom plugins for QGIS.