skip to Main Content

Programming PyQGIS

Course Overview:
QGIS is a cross-platform free and open source desktop geographic information systems application that provides data viewing, editing, and analysis capabilities.  Learn how to script your QGIS geoprocessing tasks with Python and PyQGIS.

In this class you will learn how to use the Python programming language to automate your QGIS geoprocessing tasks with PyQGIS.  Starting with the basics you’ll learn the fundamentals of the Python programming language and how you can use various development environment including the QGIS Python console to write scripts.  You’ll learn how to load vector and raster layers into your script and then perform various operations on those layers including examining features, editing layers including adding, updating, and deleting features, add and remove fields, and write various GIS format files including shapefiles, KML, and GeoJSON. In addition, you’ll learn how to create new geometries and perform spatial operations, use projections, and communicate with the user as your geoprocessing scripts execute.  More advanced topics include using the map canvas, map rendering and printing, and developing Python plugins for QGIS.

Target Audience:
This course is for those who wish to learn how to automate QGIS geoprocessing tasks with Python.

Topics Covered:

  • Introduction to Python
  • Introduction to PyQGIS
  • Load Vector and Raster Layers
  • Using Vector Layers
    • Examining features in a layer
    • Creating buffers for editing layers
    • Adding features to a layer
    • Editing features in a layer
    • Deleting features from a layer
    • Adding and removing fields
    • Writing shapefiles, KML, GeoJSON
    • Symbolizing vector layers
  • Using Geometry operations
    • Creating geometries
    • Geometry operations
  • Using Raster Layers
  • Data Projections
  • Using the Map canvas
    • Referencing the map canvas
    • Using map tools with the map canvas
  • Map Rendering and Printing
    • Simple renderer
    • Map composer
    • Output to raster
    • Output to PDF
  • Communicating with the User
  • Developoing Python Plugins


Back To Top
×Close search