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.
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
| Format | Description & 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:
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.
1.2.2 Roads and Points of Interest
Source: OpenStreetMap via Geofabrik
.shp.zip1.2.3 Elevation Raster (DEM)
Source: NASA SRTM — 30m resolution global DEM
SRTMGL1 (1 arc-second, ~30m). Select tiles covering your area03_Raster/1.2.4 Land Cover Raster
Source: ESA WorldCover — 10m resolution global land cover (2021)
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
| Component | Function |
|---|---|
| Menu Bar | Top-level menus: Project, Edit, View, Layer, Settings, Plugins, Vector, Raster, Processing, Help |
| Toolbars | Icon-based shortcuts. Right-click toolbar area to toggle on/off. |
| Map Canvas | Central area where map layers are rendered and visualised. |
| Layers Panel | Lists all loaded layers. Tick/untick to toggle visibility. Drag to reorder. |
| Browser Panel | File explorer for dragging datasets directly into QGIS. |
| Status Bar | Bottom bar showing CRS, map scale, coordinates, and rendering status. |
| Processing Toolbox | View > Panels — hundreds of geoprocessing algorithms. |
Creating a New Project
Ctrl+N)05_Projects/Training_Session.qgzImporting Data into QGIS
3.1 Importing a Shapefile (Vector)
01_Admin_Boundaries/ folder.shp file onto the Map Canvas, OR go to Layer > Add Layer > Add Vector Layer (Ctrl+Shift+V)💡 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)
Ctrl+Shift+R)03_Raster/ folder and select the GeoTIFF file3.3 Importing a CSV File as Point Layer
Ctrl+Shift+T)EPSG:43263.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
| Plugin | Purpose |
|---|---|
| QuickMapServices | Adds basemaps — Google, OpenStreetMap, Bing, Esri |
| QGIS2Web | Exports your map to interactive Leaflet/OpenLayers web map |
| QuickOSM | Download OSM data directly within QGIS using Overpass API |
| Zonal Statistics | Calculates raster stats (mean, max) within polygon zones |
| Profile Tool | Creates elevation profiles along a line over a DEM |
| DataPlotly | Interactive charts from attribute data within QGIS |
| SCP | Remote sensing — preprocessing and classifying satellite imagery |
Adding a Basemap with QuickMapServices
💡 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
WGS 84 → select EPSG:4326, OR filter UTM → select zone (e.g. EPSG:32637 for East Africa)Reprojecting a Layer (Permanently)
EPSG:32637)✅ 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).
fclass)6.3 Graduated Renderer (Quantitative)
Use for continuous numeric data (population density, elevation).
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
NAME_1)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).
1000 for 1km — layer must be in metres)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)
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)
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
Exporting
| Format | When to Use | Settings |
|---|---|---|
| Print output | 300 DPI | |
| PNG | Web / presentation (lossless) | 150–200 DPI |
| SVG | Further 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
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
amenity, Value = hospital → set extent to Layer Extent📖 QGIS Training Manual · Mtg7 GeoEngineer · JKUAT GEGIS Programme
Applicable QGIS Version: 3.x LTR and above