📖 QGIS Manual
Introduction 1. Geospatial Data 1.1 Data Formats 1.2 Datasets to Download 2. QGIS Interface 3. Importing Data 4. Plugins 5. CRS & Projections 6. Styling & Symbology 7. Spatial Analysis 8. Editing Vector Data 9. Print Layouts & Export 10. Additional Topics
QGIS Training Manual
GEGIS · JKUAT · GIS Training

QGIS Fundamentals
Practical Training Manual

A comprehensive step-by-step guide covering data acquisition, import & management, plugins, projections, symbology, spatial analysis, editing, and professional map production.

QGIS 3.x LTR Data Acquisition Spatial Analysis Cartography Map Printing

Introduction

This manual is designed for GIS practitioners, students, and professionals who want to develop practical skills in QGIS — one of the world's most powerful and widely-used open-source Geographic Information System platforms. The course is structured progressively, starting from data acquisition and working through to professional map production.

By the end of this training, participants will be able to:

  • Obtain, import, and manage geospatial datasets in multiple formats
  • Install and configure plugins to extend QGIS functionality
  • Understand and correctly apply coordinate reference systems (CRS/projections)
  • Apply cartographic styling and symbology to convey meaningful spatial information
  • Perform core spatial analysis operations
  • Edit vector features and attribute data
  • Produce professional print-ready maps using the QGIS Print Layout

📋 Note on Datasets: All datasets used throughout this practical are thematically related to an urban planning and land use scenario, spanning Shapefile (.shp), GeoTIFF, CSV, and Excel (.xlsx) formats.

Obtaining Geospatial Data

Before any GIS work can begin, you need data. In this section, we identify and download datasets from trusted open-data sources, all thematically linked to urban and environmental analysis.

1.1 Overview of Data Formats Used

FormatDescription & Use
Shapefile (.shp)Most common vector format. Contains geometry + DBF attribute table. Used for boundaries, roads, and points.
GeoTIFF (.tif)Raster format encoding continuous grid data — elevation, land cover, or satellite imagery.
CSV (.csv)Plain-text table. Used to import tabular location data which QGIS can geocode.
Excel (.xlsx)Spreadsheet used for attribute-rich tabular data joinable to spatial layers.
GeoJSON (.geojson)Lightweight JSON-based vector format, common from web APIs and OpenStreetMap exports.

1.2 Datasets to Download

Download all datasets before starting practicals. Organise using this folder structure:

QGIS_Training/
  01_Admin_Boundaries/   ← Shapefiles
  02_Roads_POI/         ← Shapefiles + GeoJSON
  03_Raster/            ← GeoTIFF files
  04_Tables/            ← CSV + XLSX files
  05_Projects/          ← QGIS .qgz project files

1.2.1 Administrative Boundaries (Shapefile)

Source: GADM — country, region, and district level boundaries.

2
Select your country (e.g. Kenya)
3
Download Level 0 (Country), Level 1 (Counties), Level 2 (Districts) as Shapefiles

1.2.2 Roads and Points of Interest

Source: OpenStreetMap via Geofabrik

2
Navigate: continent → country → download .shp.zip
3
Extract — contains: roads, POIs, buildings, waterways, land use

1.2.3 Elevation Raster (DEM)

Source: NASA SRTM — 30m resolution global DEM

2
Search SRTMGL1 (1 arc-second, ~30m). Select tiles covering your area
3
Download as GeoTIFF → place in 03_Raster/

1.2.4 Land Cover Raster

Source: ESA WorldCover — 10m resolution global land cover (2021)

2
Select tiles and download GeoTIFF — classifies: forest, cropland, built-up, water, wetland

1.2.5 Population/Facility Data (CSV)

Source: OCHA HDX Portal — Search country + 'health facilities' or 'schools'. Ensure CSV has Latitude/Longitude columns.

1.2.6 Socioeconomic Table (Excel)

Sources: Kenya Open Data or World Bank — county-level statistics for joining to boundaries.

QGIS Interface Overview

ComponentFunction
Menu BarTop-level menus: Project, Edit, View, Layer, Settings, Plugins, Vector, Raster, Processing, Help
ToolbarsIcon-based shortcuts. Right-click toolbar area to toggle on/off.
Map CanvasCentral area where map layers are rendered and visualised.
Layers PanelLists all loaded layers. Tick/untick to toggle visibility. Drag to reorder.
Browser PanelFile explorer for dragging datasets directly into QGIS.
Status BarBottom bar showing CRS, map scale, coordinates, and rendering status.
Processing ToolboxView > Panels — hundreds of geoprocessing algorithms.

Creating a New Project

1
Open QGIS → Project > New (Ctrl+N)
2
Project > Properties > General — set project title
3
Set CRS under the CRS tab (see Section 5)
4
Project > Save As → save to 05_Projects/Training_Session.qgz

Importing Data into QGIS

3.1 Importing a Shapefile (Vector)

1
In the Browser Panel, navigate to your 01_Admin_Boundaries/ folder
2
Drag the .shp file onto the Map Canvas, OR go to Layer > Add Layer > Add Vector Layer (Ctrl+Shift+V)
3
Click Add, then Close

💡 Tip: A shapefile is a collection of files (.shp, .dbf, .shx, .prj, etc.) that must all stay in the same folder. When copying, always copy ALL files with the same base name.

3.2 Importing a GeoTIFF (Raster)

1
Layer > Add Layer > Add Raster Layer (Ctrl+Shift+R)
2
Navigate to your 03_Raster/ folder and select the GeoTIFF file
3
Drag the raster below vector layers in the Layers Panel

3.3 Importing a CSV File as Point Layer

1
Layer > Add Layer > Add Delimited Text Layer (Ctrl+Shift+T)
2
Browse to your CSV. Under Geometry Definition, select Point coordinates
3
Set X field = Longitude, Y field = Latitude. CRS = EPSG:4326
4
Click Add — points appear on the canvas

3.4 Managing Layers

  • Reordering: Drag layers in the Layers Panel — rasters at bottom, points at top
  • Renaming: Right-click layer → Rename Layer
  • Removing: Right-click → Remove Layer (does not delete the file)
  • Groups: Right-click Layers Panel → Add Group; drag related layers in
  • Properties: Double-click any layer → symbology, labels, fields, joins

Managing and Installing Plugins

Go to Plugins > Manage and Install Plugins. In Settings, tick 'Show also experimental plugins'.

Essential Plugins

PluginPurpose
QuickMapServicesAdds basemaps — Google, OpenStreetMap, Bing, Esri
QGIS2WebExports your map to interactive Leaflet/OpenLayers web map
QuickOSMDownload OSM data directly within QGIS using Overpass API
Zonal StatisticsCalculates raster stats (mean, max) within polygon zones
Profile ToolCreates elevation profiles along a line over a DEM
DataPlotlyInteractive charts from attribute data within QGIS
SCPRemote sensing — preprocessing and classifying satellite imagery

Adding a Basemap with QuickMapServices

1
Web > QuickMapServices > Settings → click 'Get contributed pack'
2
Web > QuickMapServices > OSM Standard or Google Satellite
3
Ensure basemap is at the BOTTOM of the Layers Panel

💡 Basemap CRS: Most basemaps use Web Mercator (EPSG:3857). QGIS reprojects other layers on-the-fly.

Coordinate Reference Systems & Projections

Key Concepts

  • Geographic CRS: Angular units (degrees lat/lon). Global data. Example: WGS 84 (EPSG:4326)
  • Projected CRS: Linear units (metres). Local analysis. Example: UTM zones, national grids
  • On-the-fly reprojection: QGIS displays layers in different CRS by reprojecting to project CRS — does NOT change the file's CRS

Setting the Project CRS

1
Project > Properties > CRS tab
2
Filter WGS 84 → select EPSG:4326, OR filter UTM → select zone (e.g. EPSG:32637 for East Africa)
3
Verify CRS in the Status Bar at bottom-right

Reprojecting a Layer (Permanently)

1
Right-click layer → Export > Save Features As
2
Click the CRS selector → choose target CRS (e.g. EPSG:32637)
3
Set output file path → click OK

✅ Best Practice: Always reproject to a projected CRS (UTM) before buffer, area, or distance analysis. Using degrees produces incorrect results.

Styling and Symbology

6.1 Single Symbol

Double-click layer → Properties > Symbology → click symbol preview → change Fill, Stroke, Size → OK

6.2 Categorised Renderer (Qualitative)

Use for categorical attributes (e.g. road type, land use class).

1
Symbology → change dropdown to Categorized
2
Set Value to the field (e.g. fclass)
3
Click Classify → auto-generates colours → OK

6.3 Graduated Renderer (Quantitative)

Use for continuous numeric data (population density, elevation).

1
Symbology → Graduated → set Value field
2
Choose Colour Ramp (e.g. YlOrRd for population)
3
Set Mode: Natural Breaks (Jenks) — 5 classes standard → Classify → OK

6.4 Raster Symbology

DEM: Render type = Singleband pseudocolor → choose Colour ramp (Spectral reversed) → Classify → OK
For hillshade: Render type = Hillshade → set sun angle and azimuth

6.5 Adding Labels

1
Properties > Labels → change to Single labels
2
Set Value to name field (e.g. NAME_1)
3
Under Buffer sub-tab → enable Draw text buffer (white) for readability

Spatial Analysis

Access via Processing > Toolbox (Ctrl+Alt+T)

7.1 Select by Attribute

Vector > Research Tools > Select by Expression → type query e.g. "population" > 50000 → Select Features

7.2 Buffer Analysis

Creates zones of specified distance around features (e.g. 500m around health facilities).

1
Processing Toolbox → search Buffer → Vector geometry > Buffer
2
Set Input Layer, Distance (e.g. 1000 for 1km — layer must be in metres)
3
Segments = 30 (smooth circle) → Run

7.3 Clip

Vector > Geoprocessing Tools > Clip → Input = layer to clip, Overlay = clipping boundary → Run

7.4 Dissolve

Vector > Geoprocessing Tools > Dissolve → set Dissolve Field (blank = merge ALL into one) → Run

7.5 Spatial Join

Processing Toolbox → Join attributes by location → Input = receiving layer, Join = providing layer → predicate: within → Run

7.6 Zonal Statistics

Processing Toolbox → Zonal statistics → Raster = DEM, Vector = boundaries → select Mean/Max/Min/Sum → Run (stats added as new columns)

7.7 Table Join (Excel to Shapefile)

1
Double-click shapefile → Properties > Joins → click +
2
Set Join Layer = Excel table, Join Field = matching ID column, Target Field = shapefile ID column
3
OK → open Attribute Table — Excel columns are now appended

Editing Vector Data

8.1 Enabling Edit Mode

Select layer → click yellow pencil icon in Digitizing Toolbar, OR Layer > Toggle Editing. Save regularly: Ctrl+S

8.2 Editing Attributes

Enable Edit → open Attribute Table (F6) → click a cell to edit → save

8.3 Adding New Features (Digitising)

1
Enable Edit → click Add Point/Line/Polygon Feature in Digitizing Toolbar
2
Click canvas to place vertices. Right-click to finish. Fill attribute form
3
Save edits

8.4 Field Calculator

Attribute Table → click abacus icon → check Create a new field → enter expression e.g. $area / 1000000 (m² to km²) → OK

Print Layouts & Map Export

Creating a Layout

1
Project > New Print Layout → name it
2
Right-click canvas → Page Properties → set A3/A4, Landscape/Portrait
3
Add Item > Add Map → draw map area → set Scale in Item Properties
4
Add North Arrow, Scale Bar, Legend, Title Label

Exporting

FormatWhen to UseSettings
PDFPrint output300 DPI
PNGWeb / presentation (lossless)150–200 DPI
SVGFurther editing in Inkscape / Illustrator—

✅ Checklist before export: Scale bar accurate? North arrow present? Legend items labelled clearly? Title readable?

Additional Topics

10.1 Georeferencing a Scanned Map

1
Layer > Georeferencer → load scanned image
2
Add at least 4 Ground Control Points (GCPs) spread across the image
3
Set Transformation type, Resampling method, Target CRS → Start Georeferencing

10.2 Creating a Heatmap

Load point layer → Layer > Properties > Symbology → change renderer to Heatmap → adjust Radius and Colour Ramp

For raster heatmap: Processing Toolbox > Heatmap (Kernel Density Estimation)

10.3 Generating Hillshade from DEM

Processing Toolbox → search Hillshade (GDAL) → set Input DEM, Z Factor (1 = realistic, 2–3 = dramatic) → Run

10.4 Using QuickOSM

1
Vector > QuickOSM > QuickOSM
2
Key = amenity, Value = hospital → set extent to Layer Extent
3
Click Run Query — downloads live OSM data into QGIS

📖 QGIS Training Manual · Mtg7 GeoEngineer · JKUAT GEGIS Programme

Applicable QGIS Version: 3.x LTR and above