ULSTEPVila Nova University
Free University of São Tomé and Príncipe
School of Public Works
ULS-ETPP-TOPOSIG2 · SESSION 4

Topography and GIS 2 — Session 4: Vector and raster data, layers, spatial queries and QGIS

ULSTEP Vila Nova · School of Public Works and Bridges · Semester 3 · 3 ECTS · Session 4/5

LevelBachelor's degree cycle (semester 3)
PeriodAcademic year 2026-2027
ULSTEP · beta · not a diploma · CC BY-NC-SA 4.0

Learning guide for the session

Guide d’apprentissage

Objectives, pathways, method and evaluation: how to progress at your own pace.

1
Objectifs de la séance
  • Objective 1: Distinguish between vector data and raster data and choose the model suited to three given phenomena, with a justification for each
  • Objective 2: Calculate the number of cells, the storage weight and the area of a cell of a raster grid from the extent and the resolution, without deviation
  • Objective 3: Formulate an attribute query and a spatial query, and predict the number of entities selected from a dataset of eight entities
  • Objective 4: Chain a geoprocessing operation (buffer, intersection) in a coordinate system in metres and calculate the area of a road buffer to within 1 %
  • Objective 5: Describe a QGIS workflow in six steps, from import to export, citing at least three quality checks
2
Parcours d'apprentissage
  • Part 1 — Situate and diagnose: test your knowledge and understand how GIS models territory (Entry test and real case study: John Snow's map (1854); Two models of reality: vector and raster; Choose a model, a format and a spatial reference)
  • Part 2 — Understand and practise: query and transform layers (Attributes and spatial queries; Geoprocessing: buffer zone, intersection, union; Case study 1: pumps, cases and zones of influence)
  • Part 3 — Apply, verify, synthesise: raster, QGIS and applied cases (Map algebra and guided activity on raster; QGIS: workflow and case study 2 (culverts); Summary sheet and self-evaluation)
3
Méthode conseillée
  • Listen, then pause before each numerical result and find it yourself.
  • Always write the units (m, m², ha, bytes) and convert at the end only.
  • Draw a sketch before calculating: area, point, distance, grid.
  • Equipment: graph paper, pencil, calculator; free QGIS optional to redo the manipulations.
4
Évaluation et durée
  • Unmarked entry test (5 questions).
  • Self-evaluation I know / I can and short marked exercise.
  • Two case studies with question and detailed answer.
  • MCQ of 10 questions with justification of each answer.

Session plan

Introduction

Three progressive parts: situate, understand and practise, then apply and verify.

1
Locate and diagnose: test your knowledge and understand how GIS models territory
  • Entry test and real case study: John Snow's map (1854)
  • Two models of reality: vector and raster
  • Choosing a model, a format and a spatial reference system
2
Understand and practise: interrogate and transform layers
  • Attributes and spatial queries
  • Geoprocessing: buffer zone, intersection, union
  • Case study 1: pumps, cases and zones of influence
3
Apply, verify, synthesise: raster, QGIS and applied case studies
  • Map algebra and guided activity on raster
  • QGIS: workflow and case study 2 (culverts)
  • Summary sheet and self-assessment

Acronyms and units for the session (1/2)

Annexe
CGISCanada Geographic Information System, first operational GIS
CRSCoordinate Reference System, coordinate reference system
DBFData table format used by the shapefile
DEMDigital elevation model
ECTSEuropean Credit Transfer and Accumulation System (teaching credits)
ESRIAmerican company publisher of GIS software
GDALFree library for reading and writing geographic formats
GeoJSONJSON format for geographic entities (RFC 7946)
GeoTIFFTIFF with integrated georeferencing
GISGeographic information system
GNSSGlobal Navigation Satellite System (satellite navigation)
GRASS GISFree GIS software, controllable from QGIS
ISOInternational Organisation for Standardisation
JSONJavaScript Object Notation, structured text format
m, m², ha, km²Metre, square metre, hectare (10,000 m²), square kilometre
MoMegabyte (1 MB = 1,000,000 bytes in this session)
OGCOpen Geospatial Consortium, standardisation body
PostGISGeographic extension of the PostgreSQL database

Acronyms and units for the session (2/2)

Annexe
QGISFree GIS software (from Quantum GIS)
RFCRequest for Comments, series of Internet standardisation documents
SQLStructured Query Language, database query language
TIFFTagged Image File Format, image format
UETeaching unit
ULSTEPFree University of São Tomé and Príncipe, also known as Vila Nova University
UTMUniversal Transverse Mercator, projection expressing coordinates in metres
WGS 84World Geodetic System 1984, global geodetic system

Table of figures

Annexe

9 figure(s) : photographies, schémas et graphiques, avec crédit et licence.

N°NatureLégendeAuteur / sourceLicenceDiapo
Fig. 1SchémaFrom case map to spatial argumentULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova10
Fig. 2SchémaThe three vector geometriesULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova12
Fig. 3SchémaRaster: strengths and limitationsULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova13
Fig. 4SchémaWhich model for which phenomenon?ULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova15
Fig. 5SchémaFour families of formatsULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova16
Fig. 6SchémaFour types of questions asked of a layerULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova19
Fig. 7SchémaA geoprocessing chainULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova21
Fig. 8SchémaThree families of raster operationsULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova26
Fig. 9SchémaQGIS workflowULSTEP Vila Nova (conception originale)© ULSTEP Vila Nova29

Historical milestones: from Snow's map to open formats

Timeline

Seven dated and sourced landmarks, from 1854 to 2016.

1854
John Snow's cholera map
Cases and water pumps marked on a plan in London; 420 deaths according to the final count from the page read
1963
The CGIS of Ottawa
Roger Tomlinson: first operational GIS, inventory of Canadian lands at 1:50 000
1970
Tobler's first law
"Everything is related to everything else, but near things are more related than distant things", Economic Geography, vol. 46
1983
Map algebra and ARC/INFO
Tomlin and Berry discuss map algebra; ESRI publishes ARC/INFO
1997
Simple Features specification
First version of the OGC specification for geometries in databases
2002
Birth of QGIS
Development launched by Gary Sherman; first public release in July 2002
2016
Standardised GeoJSON
RFC 7946, August 2016: geographic features in JSON, WGS 84
Part 1 sur 3
1
Locate and diagnose: test your knowledge and understand how GIS models territory
ULS-ETPP-TOPOSIG2 · Session 4 · Topography and GIS 2 — Session 4: Vector and raster data…

Definition

Vocabulaire
Course term
Entry test — Prerequisites for the session
Prerequisites: from Latin prae- (before) + requirere (to require)
Five questions to assess your knowledge of Topography and Geomatics 1 before tackling GIS. Not graded; detailed correction in the voice-over.
Source : Exercices construits (valeurs d'énoncé), résultats recalculés par script : 500 m ; 1 000 m ; 8 % ; 2,5 ha ; 3,2 km²

Real case: the cholera epidemic in Soho, London, 1854

Key concept
From case map to spatial argument
1
Locate the cases
Points on a map
→
2
Locate the pumps
Second layer
→
3
Assign to the nearest
Voronoï zones
→
4
Discuss the limitations
A map is not proof
Fig. 1
Sources : [S4] Wikipédia, 1854 Broad Street cholera outbreak (secondaire, lu le 15/11/2026) · [S1] Wikipédia, Geographic information system

To remember — Entry test and real case: John Snow's map (1854)

Key takeaways

Key takeaways

The vector model: points, lines, polygons and attributes

Key concept
The three vector geometries
📍
Point
Culvert, well, levelling benchmark
〰️
Line
Road, canal, pipe: length
⬠
Polygon
Plot, lake, flood zone: area
Fig. 2
Sources : [S1] Wikipédia, Geographic information system · [S5] Wikipédia, Shapefile

The raster model: a grid of regular cells

Key concept
Raster: strengths and limitations
🌡️
Continuous phenomena
→
Altitude, slope, temperature: a value at every point
🛰️
Images
→
Aerial and satellite photographs
🪜
Stepped edges
→
A sharp boundary becomes a stair step
💾
Weight
→
Fine resolution = number of cells and file size that explode
Fig. 3
Source : [S2] Wikipédia, Raster data (secondaire, lu le 15/11/2026)

To remember — Two models of reality: vector and raster

Key takeaways

Key takeaways

Choose between vector and raster

Key concept
Which model for which phenomenon?
Discrete phenomenon
📐
Vector
Cadastre, structures, road axes
🔁
Rasterised vector
Protected area crossed with a slope
🗺️
Mixed case
Contour lines derived from a raster
🧱
Raster
DEM, slope, land use
Nature of the phenomenon
Required precision
Value at every point
Fig. 4
Sources : [S12] Wikipédia, Tobler's first law of geography · [S1] Wikipédia, Geographic information system

File formats and spatial reference

Key concept
Four families of formats
📦
Shapefile
Vector, multiple files, strict limits
🧾
GeoJSON
Standardised text, WGS 84, longitude first
🖼️
GeoTIFF
Georeferenced raster
🗄️
Spatial database
PostGIS: geometric types, index, SQL
Fig. 5
Sources : [S6] Wikipédia, GeoJSON · [S9] Wikipédia, GeoTIFF · [S13] Wikipédia, Spatial database · [S5] Wikipédia, Shapefile

To remember — Choose a model, a format and a spatial reference

Key takeaways

Key takeaways

Part 2 sur 3
2
Understand and practise: interrogate and transform layers
ULS-ETPP-TOPOSIG2 · Session 4 · Topography and GIS 2 — Session 4: Vector and raster data…

Attribute queries and spatial queries

Key concept
Four types of questions asked of a layer
🔢
Attribute
→
Table values: diameter < 800 mm
🟦
Intersection / containment
→
Predicates cited by the page read [S13]
📏
Distance
→
Within 100 m of a pump [S7]
❓
Other predicates
→
Touch, cross, overlap: to be verified in the standard [S8]
Fig. 6
Sources : [S13] Wikipédia, Spatial database · [S8] Wikipédia, Simple Features · [S7] Wikipédia, Spatial analysis

To remember — Attributes and spatial queries

Key takeaways

Key takeaways

Geoprocessing: buffer, intersection, union

Key concept
A geoprocessing chain
1
Reproject in metres
Before any measurement
→
2
Buffer of 50 m
New layer, original intact
→
3
Intersection with parcels
Parcels affected
→
4
Calculate areas
Order of magnitude check
Fig. 7
Sources : [S7] Wikipédia, Spatial analysis · [S1] Wikipédia, Geographic information system · Exemple recalculé par script (verification_calculs.py)

To remember — Geoprocessing: buffer zone, intersection, union

Key takeaways

Key takeaways

Case study 1 — Pumps and disease cases (problem statement data)

Cas concret
Sources : Exercice construit, recalculé par script de vérification (aucun écart) · [S4] Wikipédia, 1854 Broad Street cholera outbreak

To remember — Case study 1: pumps, cases and zones of influence

Key takeaways

Key takeaways

Part 3 sur 3
3
Apply, verify, synthesise: raster, QGIS and applied case studies
ULS-ETPP-TOPOSIG2 · Session 4 · Topography and GIS 2 — Session 4: Vector and raster data…

Map algebra: combining rasters

Key concept
Three families of raster operations
🔲
Local
Cell by cell: sum, reclassification
🔳
Focal
Neighbourhood of each cell: slope
🟩
Zonal
Statistics by zone of same value
Fig. 8
Sources : [S10] Wikipédia, Map algebra (secondaire, lu le 15/11/2026) · Exemple d'adéquation construit, recalculé par script

Guided activity — Size of a raster in five steps (statement values)

Cas concret
Sources : Exercice construit, résultats recalculés par script · [S2] Wikipédia, Raster data

Key points — Map algebra and guided activity on the raster

Key takeaways

Key takeaways

QGIS and the workflow in six steps

Key concept
QGIS workflow
1
Project in metres
Working CRS
→
2
Import and verify
Type, CRS, table
→
3
Control quality
Features, values, geometries
→
4
Query and process
Selection, buffer, intersection
→
5
Format
Symbology, scale, sources
→
6
Export
Raw data retained
Fig. 9
Source : [S3] Wikipédia, QGIS (secondaire, lu le 15/11/2026)

Case study 2 — Culverts and flood zone (constructed case, to be validated by a Santomean professional)

Cas concret
Sources : Cas construit, aucune donnée réelle santoméenne ; résultats recalculés par script · [S7] Wikipédia, Spatial analysis ; [S13] Wikipédia, Spatial database

Key points — QGIS: workflow and case study 2 (culverts)

Key takeaways

Key takeaways

Key points — Summary sheet and self-assessment

Key takeaways

Key takeaways

Self-assessment and short corrected exercise — Session 4

Assignment — to submit

Consignes

Format attendu : One-page revision sheet (handwritten or digital), units on each line, formula before numerical application
Deposit: Optional submission on the course space
Weighting: Formative unmarked exercise

Standardised sources sheet

Bibliography

Numbered references [S#]: S1 to S13 opened and read on 15/11/2026 (secondary pages opened); spatial predicates other than those cited, missing values in raster and UTM zone for São Tomé and Príncipe: to be verified.

Reference works
  • To be arranged with the instructor (None) — Introduction manual to geographic information systems , To be located; primary source to be prioritised for any work to be submitted
Webographie officielle
  • Wikipedia (open secondary source) — Geographic information system
  • Wikipedia (open secondary source) — Raster data
  • Wikipedia (open secondary source) — QGIS
  • Wikipedia (open secondary source) — 1854 Broad Street cholera outbreak
  • Wikipedia (open secondary source) — Shapefile
  • Wikipedia (open secondary source) — GeoJSON
  • Wikipedia (open secondary source) — Spatial analysis
  • Wikipedia (open secondary source) — Simple Features
  • Wikipedia (open secondary source) — GeoTIFF
  • Wikipedia (open secondary source) — Map algebra
  • Wikipedia (open secondary source) — Roger Tomlinson
  • Wikipedia (open secondary source) — Tobler's first law of geography
  • Wikipedia (open secondary source) — Spatial database

Trilingual glossary — FR / PT / EN

Annexe
Geographic information system (FR) / Sistema de informação geográfica (PT) / Geographic information system (EN)Equipment and software for storing, managing, analysing and visualising geographic data
Feature (FR) / Entidade ou feição (PT) / Feature (EN)Geographic object: geometry + attributes
Layer (FR) / Camada (PT) / Layer (EN)Dataset of a theme, overlayable with others
Attribute table (FR) / Tabela de atributos (PT) / Attribute table (EN)Descriptive values of entities in a layer
Point, line, polygon (FR) / Ponto, linha, polígono (PT) / Point, line, polygon (EN)Three vector geometries
Cell (FR) / Célula (PT) / Cell (EN)Element of a raster grid carrying a value
Resolution (FR) / Resolução (PT) / Resolution (EN)Size of the side of a raster cell
Buffer (FR) / Zona de influência ou buffer (PT) / Buffer (EN)Region at a given distance from an object
Intersection (FR) / Interseção (PT) / Intersection (EN)Common part of two layers
Union (FR) / União (PT) / Union (EN)Merging of entities and attributes from two layers
Query (FR) / Consulta (PT) / Query (EN)Question posed to a layer
Coordinate reference system (FR) / Sistema de referência de coordenadas (PT) / Coordinate reference system (EN)Framework that gives numerical meaning to coordinates
Projected coordinates (FR) / Coordenadas projetadas (PT) / Projected coordinates (EN)Coordinates in metres
Geographic coordinates (FR) / Coordenadas geográficas (PT) / Geographic coordinates (EN)Longitude and latitude in degrees
Map algebra (FR) / Álgebra de mapas (PT) / Map algebra (EN)Local, focal, zonal operations on rasters
Rasterization (FR) / Rasterização (PT) / Rasterization (EN)Conversion from vector to raster, with loss of information
Vectorization (FR) / Vetorização (PT) / Vectorization (EN)Raster to vector conversion
Georeferencing (FR) / Georreferenciação (PT) / Georeferencing (EN)Link between the grid or image and the ground
Neighbourhood (FR) / Vizinhança (PT) / Neighborhood (EN)Cells neighbouring a cell, basis of focal operations
Culvert (FR) / Bueiro ou passagem hidráulica (PT) / Culvert (EN)Small hydraulic structure under a road (PT term to be validated)
Flood-prone area (FR) / Zona inundável (PT) / Flood-prone area (EN)Area liable to be flooded
Resampling (FR) / Reamostragem (PT) / Resampling (EN)Change of grid in a raster, which modifies the values

End-of-session self-test — 10 questions

Validation 80 %

Ten self-corrected questions, only one correct answer, justification of each answer. Recommended threshold: 8 correct answers out of 10. Distribution of correct answers: a = 3, b = 4, c = 3.

1. A raster grid covers 5 km × 4 km with cells of 10 m. It contains:
  • a. 20,000 cells
  • b. 200,000 cells
  • c. 2,000,000 cells
2. The same raster changes to cells of 5 m, stored on 4 bytes: its weight is worth:
  • a. 0,8 Mo
  • b. 1,6 Mo
  • c. 3,2 Mo
3. To represent an altitude known at every point, the most suitable model is:
  • a. Raster
  • b. Vector polygons only
  • c. Unconnected vector points
4. The three mandatory files of a shapefile are:
  • a. .shp, .shx, .dbf
  • b. .shp alone
  • c. .geojson, .prj, .tif
5. In GeoJSON (RFC 7946), the order of the coordinates of a point is:
  • a. latitude then longitude
  • b. longitude then latitude
  • c. according to the local projection
6. Road of 12,400 m, buffer of 50 m on each side (endpoints neglected): the area is worth:
  • a. 62 ha
  • b. 248 ha
  • c. 124 ha
7. A buffer of "20" requested on a layer in degrees produces:
  • a. 20 m
  • b. 20 km
  • c. 20 degrees, i.e. more than 2,000 km
8. Which is an attribute query?
  • a. Culverts within the floodable area
  • b. Culverts with diameter < 800 mm
  • c. Culverts less than 20 m from the edge of the zone
9. The intersection of two polygon layers preserves:
  • a. the area where they overlap
  • b. the union of all entities
  • c. everything except the overlap
10. In case study 1, P1 receives 13 of the 20 cases, that is:
  • a. 13 %
  • b. 65 %
  • c. 35 %
For what follows
«
A map is never more reliable than the question posed to it and the data given to it.
Freely adapted
0:00
0:00
1 / 37
⭐ 0 pts