October 2026 — Week 7 of 9

Applied Spatial Analysis Using QGIS - Professional Print Layouts & Atlas

Applied Spatial Analysis Using QGIS — GIS for Surveyors (2026 Cohort) · 25 Oct 2026 · 47:24 · Watch on YouTube (offline-safe)

Mission: A client wants one clean, printable A3 map sheet of each district — with grid and scale.
Live focus: Print Layout setup (guides), main map + inset, legend/scale bar/north arrow/title, locking the map, then build an Atlas driven by states that intersect a 5 km railway buffer, label each sheet with State Name and total railway length (km) calculated on-the-fly, and export as a multi-page PDF at 300 DPI.
Data: Red Sea layers, admin2_districts/state layer, railway, roads/rivers, population from previous class (all in same CRS — UTM 36N)  |  Deliverable: Multi-page PDF, one sheet per state (coverage), at 300 DPI showing state boundary, railway and its 5 km hashed buffer, with total railway length in km for that state.

Week 6 gave us surfaces — rasters that let us ask where to build and how many people a district serves. Week 7 is the cartographic step: turning all that analysis into a proper, professional map product that can be printed and communicated clearly to a client or decision-maker.

A good map answers three questions at a glance: what, where, and when. That means choosing the right elements, controlling scale and extent, and making the layout readable on paper — not just on screen.

Why Week 7 Exists

Up to now we've focused on analysis. The final deliverable in applied GIS is almost always a map. This week we learn the standard workflow:

  1. Set up a clean Print Layout with a logical structure
  2. Prepare and lock the main map so it doesn't accidentally pan
  3. Add context with an inset map
  4. Include essential cartographic elements (grid, scale bar, north arrow, legend, title/subtitle)
  5. Add supporting info (attribute table, notes, data sources/credits)
  6. Use the Atlas to automate one page per district from a coverage layer
  7. Export at 300 DPI for printing/sharing

1) Recap — From Rasters to Map Production

We started with a quick recap of the raster work: reading pixels, reprojecting to UTM 36N, clipping, deriving slope/aspect, and using the Raster Calculator with Zonal Statistics context from the previous class. The goal now is to present those results clearly on a printed sheet.

2) Map Elements & Audience

Before touching the layout, we discussed what makes a map communicate:

3) Page Setup & Layout Structure with Guides

We created a new Print Layout and set the page size/properties for printing (A3 was used in context). The key trick was using Guides to divide the canvas into a clean structure:

Guides keep everything aligned and give a professional, balanced layout.

4) Building the Main Map

  1. Prepare layers — cleaned attribute tables (consistent naming), ensured all layers in the same CRS (UTM 36N)
  2. Add the map item — placed in the 80% main area, centered on Red Sea State (with context of Sudan visible)
  3. Style for clarity — roads/rivers/railway styled distinctly, boundaries clear, population/analysis layers styled readably
  4. Add a grid — enabled grid on the map, set interval/appearance (solid, very light grey) for a clean look
  5. Lock the map — critically important before setting up the inset and moving elements. Once locked, the map extent won't shift accidentally

5) Inset Map for Spatial Context

In the upper-right sidebar, we added a second Map item for the inset:

6) Cartographic Elements — Legend, Scale, North Arrow, Text

7) Atlas — One Map Sheet Per State (Driven by Railway Buffer)

The real power of the Print Layout is the Atlas. Instead of making a separate layout for each feature manually, we automate it — but with a specific selection criterion.

We first created a 5 km buffer around the railway line. We then used a spatial selection to find which states intersect that railway buffer. The resulting selection was saved/exported as a new layer and used as the Atlas coverage layer (so only states that actually intersect the 5 km railway corridor get a map sheet).

  1. Prepare the corridor — dissolve/create a 5 km railway buffer (style as a hatched/hashed pattern for distinction).
  2. Select coverage — select states that intersect the 5 km railway buffer, and save/export them as the coverage layer for Atlas.
  3. Set coverage layer — in Atlas, set that exported intersect layer as the coverage layer and configure the page name from a state attribute.
  4. Control the map extent — enable "Controlled by Atlas" on the main map so it zooms/pans to each selected state automatically.
  5. Dynamic labels for railway length — add two labels below/near the state name. Using an expression with @atlas_geometry, we calculated the total railway length inside each atlas feature:
    round(sum(length(intersection($geometry, @atlas_geometry)), group_by:=@atlas_id) / 1000, 1) || ' km'
    One label shows the State Name, the other shows this calculated total railway length in km for that state.
  6. Style the map — show the state boundary, the railway, and the 5 km hashed buffer clearly on each sheet.
  7. Preview & export — use Atlas Preview to cycle through sheets, then export as a multi-page PDF (300 DPI) with one sheet per covered state.

This matches the client brief: one clean, printable map sheet per district/state of interest — with grid and scale — showing the railway corridor and the total railway length present in each state.

What We Did Live — Scrub Guide

Common Hang-ups and Fixes

  1. Map pans when you don't want it to: Always lock the main map item once it's at the correct extent and scale. Do this before setting up Atlas/inset adjustments.
  2. Atlas zooms to the wrong place: Make sure the map item is set to "Controlled by Atlas" and using the correct coverage layer.
  3. Legend shows unwanted layers: In the legend item properties, uncheck "Auto update" and manually remove or reorder items, or filter to only visible layers as needed.
  4. Grid looks too heavy: Use a light grey, thin line style. Keep it readable but subtle so it doesn't overpower the map content.
  5. Attribute table doesn't fit: Resize and limit columns/fields to only what's necessary for the sheet. Use the lower section with guides for clean alignment.
  6. Export looks blurry: Export at 300 DPI (not screen resolution). Check page size matches what you intend to print.
  7. Elements misaligned: Use guides and alignment tools in the Print Layout. Keep consistent spacing between elements.

What You Should Have Now

Deliverable reminder: Submit your multi-page PDF (one sheet per state covered by the railway buffer, at 300 DPI), showing the corridor and the total railway length in km for each state. Keep practicing the layout structure — it's a skill you'll use in every real cartographic project.