PyQGIS: Automate GIS Tasks with the QGIS Python API

Getting Started
Introduction
Install QGIS
About PyQGIS
Loading Layers and Interacting with the Table of Contents
Download Vector Data
Introduction to the QGIS Python Console
Add a Vector Layer to the QGIS Interface
Save Vector Layer to a Variable
Open a Vector Layer Without Adding to the Interface
Open a Vector Layer from the Table of Contents
Open a Layer, then Add it to the Interface
Insert a Layer to a Specific Location the Table of Contents
Remove Layer from the Table of Contents
Using the Console for Interactive Commands
Vector Layer Basics
Download Roads Data
Get Layer Fields and File Path
Get Feature Attribute Values
Get Feature Geometry
Copy a Vector Layer
Change the Value of an Attribute
Change All Attribute Values
Change a Feature’s Geometry
Create a New Feature
Creating Vector Layers and Geometries
Create a Point Layer
Create a Line Layer
Create a Polygon Layer
Centroid of Polygon
Buffer Lines
Calculate Length and Area
Distance Between Geometries
Field Calculations
Create and Delete Fields
Calculate Field Values
Calculate Field Values with an Expression
Selecting Features
Create FID Field
Select by FID
Get Information from Selected Features
Select By Expression
Save Selected Features to New Shapefile
Raster Layer Basics
Download Raster Layer
Open Raster Layers
Raster Statistics
1 of 2
open source options logo
Previous Lesson
Next Lesson

About PyQGIS

PyQGIS: Automate GIS Tasks with the QGIS Python API About PyQGIS

Ask questions and get answers in the course forum!

Your browser does not support the video tag

Link to PyQGIS Documentation: https://qgis.org/pyqgis/3.0/

Link to PyQGIS Developer Cookbook: https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/index.html

Previous Lesson
Back to Course
Next Lesson