What happens when South Africa's flag is raised by the people who live beneath it?
Today's theme asks a question rather than setting a subject: is this a map? I wanted an answer that could go either way at first glance. So the map is a flag, the flag is a grid, and the grid is data.
Every one of the 59,620 squares in today's image is a real geohash cell, about 4.3 by 4.9 km, covering South Africa. Each is coloured by where it falls on the national flag stretched across the country, and raised by the number of people estimated to live in it.
The colour is design. The height is data. Together they show something no flag was ever meant to: how unevenly a country's people are spread beneath its symbol.
Explore the interactive report
The report opens on the flag in 3D, seen at an angle, so the peaks read as peaks:
- Hover over any cell for its geohash code, its flag colour, its estimated population, its population band and the height it's drawn at.
- Right-drag to tilt and turn the map. Tilt it flat and the flag reappears whole; turn it side on and the cities stand up from the plain.
- Click a bar in Share of population by flag colour to pick out one colour of the flag on the map.
- The cards give the scale: 59,620 cells, 61.7 million people, 14,944 cells with no modelled population, and 419,664 people in the busiest cell.
Interactive report: Day 25, Is this is a Map?
What the map does not show: a census. The population is modelled, and a cell's colour says nothing about the people in it. It only says where the cell sits on the flag.
Starting with a grid that covers everything
The grid is geohash precision 5, the same family of cells James Dales and I used on Day 16 for buildings and fibre. A geohash is a short code for a rectangle on the map; each extra character splits the rectangle into 32. At precision 5, a cell in South Africa is about 4.3 km east to west and 4.9 km north to south, roughly 21 km².
I built the grid myself in DuckDB rather than reusing Day 16's tables, for one reason: those tables only held cells with buildings or people. Their 50,970 cells covered about 1.07 million km² of a country of 1.22 million. The missing 150,000 km² were mostly the Karoo and the Northern Cape, which is exactly where the black triangle of the flag falls. Leave them out and the flag has holes in it.
So the pipeline lays a full lattice of cells over South Africa's outline, from geoBoundaries, and keeps every cell that touches it:
- 59,620 cells in all
- 57,527 wholly inside the country
- 2,093 crossing the coast or a border
Lesotho and Eswatini are holes in the outline, so they're holes in the grid too. Lesotho sits in the green band and Eswatini cuts a notch in the red. Two countries sit inside South Africa's flag.
DuckDB's spatial extension has no geohash function, so the codes come from interleaving the cell's column and row numbers into 25 bits and reading them off in base 32. I checked the result against a known Johannesburg cell from Day 16 (kekh1) and against London's published code, and both matched.
Adding the people: GHS-POP 2025
The population comes from GHS-POP R2023A, the European Commission Joint Research Centre's modelled population grid, for the 2025 epoch at 3 arc-seconds (about 100 m). Day 16 had already extracted South Africa: about 11.8 million populated 100 m cells holding 61,666,782 people.
Each 100 m cell goes to the geohash cell that holds its centre point. The totals reconcile exactly: 61,666,782 on the grid, 61,666,782 in the source, and no population left over.
14,944 cells, a quarter of the country, have no modelled population at all. Those cells stay in the table with a population of zero, so they're drawn flat on the ground rather than missing.
GHS-POP is an estimate, built by distributing census and projection totals across detected built-up areas. It's the best consistent grid available, but it's modelled, not counted, and I say so on the map.
Painting the flag
The flag follows its official proportions: 2:3 overall, with the red and blue bands each a third of the height, the green Y a fifth, and the white and gold borders a fifteenth each.
To colour each cell, the pipeline:
- Stretches the flag over the country from 16.4° to 32.9° E and 24.6° to 34.9° S, so the hoist, with its black triangle and gold border, sits in the Northern Cape.
- Measures each cell centre's distance from the centre line of the Y.
- Colours the cell green, white, gold or black by that distance, and red or blue above or below the Y.
South Africa reaches further north than the flag's top edge, so cells north of 24.6° S simply continue the red band.
The result is 18,963 red cells, 18,102 green, 8,553 white, 7,015 blue, 4,453 black and 2,534 gold.
Letting Icon Map Pro draw the cells
My first build drew every cell as a polygon from well-known text (WKT), each one extruded by population. It looked right, but 59,620 polygons made the report slow to open and slow to move.
A simple optimisation: send codes, not shapes
Icon Map Pro's Cells layer understands geohash codes natively, as well as H3, S2 and A5 cells. Give it a column of geohash codes as the category, set the source to geohash indexes, and it draws each rectangle itself.
That removed the geometry from the model entirely. The data file fell from 11.7 MB to 4.9 MB, and the map now opens and turns smoothly.
Two settings mattered:
- Per-cell colour. The Cells layer normally colours by a gradient. To give each cell its own flag colour from a DAX measure, the layer's Power BI formatting option has to be on. Without it, the whole flag came out in the default magenta gradient.
- Height. The layer extrudes each cell in proportion to its Cell Weight value, up to a set maximum. I bound the weight to the square root of the cell's population and set the maximum to 80 km, so the busiest cell stands 80 km tall and every other cell scales by square root.
Why square root, and why 80 km
Population is extremely uneven. The median cell holds 9 people; the busiest holds 419,664. Drawn in proportion, one Gauteng spike would dwarf everything and the flag would vanish under it.
I tested square-root and logarithmic scaling, with peaks from 10 to 100 km:
- Log scaling lifted every small town, but flattened the difference between a town and a township.
- Square root kept the cities as peaks and the flag readable underneath.
- 80 km looks absurd as a number, but it's the height at which the peaks hold their own against a country 1,600 km wide, seen at an angle.
A cell with no modelled population gets a weight of zero and stays flat. It's never given a minimum height, so emptiness stays visible.
The camera is fixed: 55° of pitch, a slight turn of -12°, centred on the country. Auto-zoom on the cells kept leaving South Africa small in a view of half of Africa.
Design: one message at a time
The flag colours are the official ones: red #E03C31, blue #001489, green #007749, gold #FFB81C, black and white.
There's no basemap. The cells sit on an empty background, so the flag reads as an object rather than a layer on top of a map. Ironically, that makes it more of an answer to is this a map?
The right-hand panel does one thing: it explains the flag.
- Four cards give the scale.
- One chart, Share of population by flag colour, carries the main finding. Its bars use the flag's own colours, with the white bar tinted grey so it shows on a white card.
- The story card explains how the map is made, and ends with the data credits.
What the map reveals
More than half of South Africa lives under the red band. Red covers 32% of the cells but 56% of the people (55.8%), because the band runs across Gauteng and the north. Green holds 27.4%, blue 9.3% and white 7.1%.
The hoist barely leaves the ground. The black triangle covers 7.5% of the cells but just 0.2% of the people, and two-thirds of its cells have no modelled population at all. With the gold border, the hoist holds 0.5% of South Africans.
Half the population lives in less than 1% of the land. Half of the 61.7 million live in just 422 cells, 0.7% of the grid. The 1,090 cells with 10,000 people or more hold 68% of everyone.
The tallest columns are townships, not city centres. The six busiest cells are, in order:
- Ivory Park and Tembisa, in the City of Johannesburg (419,664, nearly 20,000 people per km²)
- the Cape Flats around Gugulethu and Nyanga (362,010)
- three cells in Soweto (351,056, 293,460 and 293,013)
- Khayelitsha (277,061)
South Africa's densest places are its townships, many of them shaped by apartheid-era planning, not its business districts.
A caution, which the map makes for itself: the colour shares are an artefact of where I placed the flag. Stretch it differently and the red band would cover different people. The finding isn't that red is populous. It's that any even design laid over this country lands on very uneven ground.
What I learned from Day 25
- Choose the data that needs no explanation. The bird-atlas version was technically sound, but every viewer needed a paragraph first. Population explains itself.
- Zero is data. Keeping the 14,944 empty cells is what holds the flag together. Drop them and the black triangle falls apart.
- Let the visual do the geometry. Sending geohash codes instead of polygons cut the file by more than half and made the 3D map usable.
- Scale heights for the story. Square root kept both the peaks and the flag. Linear heights would have shown one spike and nothing else.
- Remove what competes. The population switch and the band chart were good features. The map got clearer when they went.
Final thoughts
Is this a map? It's a flag until you tilt it, and then it's a population map, and the tension between the two is the point. The same trick works for any brand or symbol you can lay over a real analytical grid: a logo across a service area, raised by customers, or a region's emblem raised by footfall. Keep the design honest about being design, keep the data honest about being estimated, and let the gap between them tell the story.
Paint the symbol. Let the data lift it.
Sources and attribution
- Population: Schiavina, M., Freire, S., Carioli, A., MacManus, K. (2023). GHS-POP R2023A: GHS population grid multitemporal (1975–2030), epoch 2025, 3 arc-seconds. European Commission, Joint Research Centre. Licence: CC BY 4.0. DOI: 10.2905/2FF68A52-5B5B-4A22-8F40-C41DA8332CFE. Extracted for South Africa on Day 16, November 2026.
- Boundary: geoBoundaries, South Africa ADM0 (boundary year 2020, build of December 2023; source OCHA ROSEA and the South African Municipal Demarcation Board). Licence: CC BY 3.0 IGO. https://www.geoboundaries.org.
- Flag design: the national flag of South Africa, Government of South Africa. Colours and proportions follow the official specification.
Methodology note: The grid is every geohash precision-5 cell that touches the geoBoundaries outline of South Africa (59,620 cells; 2,093 cross the coast or a border and are drawn whole). GHS-POP 2025 3 arc-second cells were assigned to the geohash cell holding their centre point; totals reconcile to 61,666,782. Cells with no modelled population are kept at zero. Each cell is coloured by its centre's position on the flag, drawn in official proportions and stretched over 16.4–32.9° E and 24.6–34.9° S; cells north of 24.6° S continue the red band. Height is proportional to the square root of estimated population, with the busiest cell at 80 km. Colour is design, not data, and the share of people under each colour depends on where the flag was placed. Population is modelled, not a census; geohash cells are near-equal in area, so a cell's count reads as density, though cells shrink about 11% from Limpopo to the Cape.