Chapter 11. PyQGIS Scripting
This chapter is focused on a specific use case or user. QGIS can be used in many different ways, and the GIS user is an eclectic user who has many different ways to interact with data and QGIS tools. The main focus of this chapter is a user who has an algorithm and wants to integrate it with QGIS.
An algorithm can be an external program, such as a water-modeling tool, or a Processing Toolbox's set of instructions.
It's possible to interact with QGIS in many different ways, from experimenting with PyQGIS in the Python console, to creating plugins that control events generated by QGIS. This chapter will give you an overview of the following topics:
- Learning Python
- Loading rasters by code
- Loading vectors by code from files or database
- Describing vector structure and how to browse and edit features
- Using Processing Toolbox algorithms by code and executing your custom algorithm
- Calling external algorithms
- Interacting with canvas events to draw or pick...