Recursive generation of QGIS maps for each location

Let's assume that you want to print a map in pdf for each location in QGIS. For example, let's assume that you have a shapefile containing the following territorial limits:

Territorial limits

  1. Go to Project > New print layout
  2. Name the layout as Atlas
  3. Add Element > New map
  4. Draw the map in the blank layout

Draw map QGIS

  1. Mark the Generate Atlas flag and select the desired coverage layer

Generate atlas

  1. Mark Controlled by Atlas flag in the Properties

Controlled by Atlas

  1. Atlas > Preview Atlas

Preview Atlas

At this point, you can export the map in pdf.

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.