O'Reilly logo

Building Mapping Applications with QGIS by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Mastering the QGIS Python API

In this chapter, we will look at a number of more advanced aspects of the PyQGIS library, as well as various techniques for working with QGIS using Python. In particular, we will learn:

  • How to work with symbol layers
  • More advanced ways of using symbols to draw vector data onto a map
  • How to implement your own symbols and renderers in Python
  • How to create a custom map layer using Python
  • How to implement your own custom map canvas items
  • How to use memory data providers

Working with symbol layers

In the previous chapters, we created symbols to display vector features by instantiating one of the three basic subclasses of QgsSymbolV2:

  • QgsMarkerSymbolV2 for point geometries
  • QgsLineSymbolV2 for line geometries
  • QgsFillSymbolV2 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required