Chapter 6. Composing Static Maps

In this chapter, we will cover the following recipes:

  • Creating the simplest map renderer
  • Using the Map Composer
  • Adding labels to a map for printing
  • Adding a scale bar to a map
  • Adding a North arrow to the map
  • Adding a logo to the map
  • Adding a vertical legend to the map
  • Adding a horizontal legend to the map
  • Adding a custom shape to the map
  • Adding a grid to the map
  • Adding a table to the map
  • Adding a world file to a map image
  • Saving a map to a project
  • Loading a map from a project

Introduction

In this chapter, we'll create maps using PyQGIS, Qt image objects, and QGIS Map Composer to create map layouts that can be exported as documents or images. The QGIS Map Composer is designed to create static map layouts with decorative and reference ...

Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.