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
ULS-ETPP-TOPOSIG2 · S4Guide d'apprentissage2 / 37
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.
ULS-ETPP-TOPOSIG2 · S4Course roadmap3 / 37
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
ULS-ETPP-TOPOSIG2 · S4Acronymes4 / 37
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
ULS-ETPP-TOPOSIG2 · S4Acronymes5 / 37
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
ULS-ETPP-TOPOSIG2 · S4Table des figures6 / 37
Table of figures
Annexe
9 figure(s) : photographies, schémas et graphiques, avec crédit et licence.
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
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
ULS-ETPP-TOPOSIG2 · Session 4 · Topography and GIS 2 — Session 4: Vector and raster data…
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Entry test and real case study: John Snow's map (1854)9 / 37
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²
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Entry test and real case study: John Snow's map (1854)10 / 37
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
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Entry test and real case study: John Snow's map (1854)11 / 37
To remember — Entry test and real case: John Snow's map (1854)
Key takeaways
Key takeaways
Entry test: Pythagoras, scale, gradient, m² into ha, footprint of an image
GIS = equipment and software that store, manage, analyse, modify, produce and visualise geographical data [S1]
London 1854: cases + pumps = two superimposed layers; 127 deaths in 3 days, 420 in total [S4]
A map supports a line of reasoning, it does not replace it
No Santomean case read: any local case will be constructed and needs to be validated
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Two models of reality: vector and raster12 / 37
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
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Two models of reality: vector and raster13 / 37
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)
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Two models of reality: vector and raster14 / 37
To remember — Two models of reality: vector and raster
Key takeaways
Key takeaways
Vector: points, lines, polygons linked to an attribute table [S1]
Shapefile: at least 3 files (.shp, .shx, .dbf), field names ≤ 10 characters, 2 GB, one geometry type per file [S5]
Raster: regular cells, one value per cell; resolution = cell side [S2]
Raster for continuous phenomena and images, vector for sharp boundaries; converting loses information [S2]
Cell ÷ 2 = cells × 4; always keep the original
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Choosing a model, a format and a spatial reference system15 / 37
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
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Choosing a model, a format and a spatial reference system16 / 37
ULS-ETPP-TOPOSIG2 · S41.Locate and diagnose: test your knowledge and understand how GIS models territory›Choosing a model, a format and a spatial reference system17 / 37
To remember — Choose a model, a format and a spatial reference
Key takeaways
Key takeaways
Choice: discrete or continuous? precision on boundaries or on a value at every point?
A real project mixes vector and raster
Four families of formats: shapefile, GeoJSON (RFC 7946, 2016), GeoTIFF, spatial databases (R-tree) [S5][S6][S9][S13]
Degrees (geographic) ≠ metres (projected): measure only in metres
Verify the reference system of each layer before any processing
Part 2 sur 3
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
ULS-ETPP-TOPOSIG2 · Session 4 · Topography and GIS 2 — Session 4: Vector and raster data…
ULS-ETPP-TOPOSIG2 · S42.Understand and practise: interrogate and transform layers›Attributes and spatial queries19 / 37
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]
5 km × 4 km at 10 m: 200 000 cells, 0.8 MB; buffer 50 m over 12 400 m: 124 ha
Next session: remote sensing, drone photogrammetry, project mapping; this course does not confer an engineer's title nor the right to practise
ULS-ETPP-TOPOSIG2 · S4Exercice33 / 37
Self-assessment and short corrected exercise — Session 4
Assignment — to submit
Consignes
I can distinguish between vector and raster and justify my choice
I can calculate the number of cells, the weight and the area of a raster cell
I can formulate an attribute query and a spatial query
I can chain a buffer and an intersection in metres and check the order of magnitude
Short exercise (stated values): footprint 2 km × 1 km, cells of 20 m, 4 bytes: 100 columns, 50 rows, 5 000 cells, 20 000 bytes = 0.02 MB; at 10 m: 200 × 100 = 20 000 cells, 80 000 bytes = 0.08 MB (× 4)
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
ULS-ETPP-TOPOSIG2 · S4Sources34 / 37
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
ULS-ETPP-TOPOSIG2 · S4Lexique technique35 / 37
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
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
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
ULS-ETPP-TOPOSIG2 · S4Final exam36 / 37
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.