All thirty days

Day 18: NULL

Every 2021 census block where Canada counted 0 people, 66.2% of its land, and the 63 reserves and settlements where it has no count at all: not 0, but NULL.

zero.pmtiles
Loading Canada's census blocks
Show or hide
Click a block or a ring.

0 and NULL are not the same thing. 0 is an answer: someone counted and found nobody. NULL is no answer at all. This map draws both from the 2021 Census, block by block. A dissemination block is the smallest piece of land the census publishes a population for: a city block in town, and a much larger piece of land outside one. On census day, 11 May 2021, Statistics Canada counted 0 people in 113,653 of Canada's 498,786 blocks. Together they cover 5,820,581 km², 66.2% of the country's land.

Slate is a block with nobody and no homes: 61.9% of the land. It is 98.8% of Nunavut and 4.6% of Prince Edward Island. Land left uncoloured is a block where the census counted at least one person, which is not the same as land people live on: the largest of those blocks covers 180,301 km² of the Northwest Territories, and 20 people were counted in it. The largest 0 is 412,973 km² of Kivalliq, in Nunavut.

Amber is 0 people in a block with homes on it: 24,285 blocks holding 40,236 private dwellings, none of them anyone's usual home on census day. The census counts a dwelling where it stands and a person where they usually live, so a block of summer cottages counts 0. The most are on lakeshores: 317 at Saugeen 29 on Lake Huron, 305 at White Bear 70 in Saskatchewan, and Victoria Beach on Lake Winnipeg.

Magenta is NULL. In 63 reserves and settlements, 847 blocks and 2,565 km², the census has no count at all, not even 0. In 25 of them the band council did not give permission to enter; in the other 38, dwelling enumeration could not be completed, with forest fire evacuations and COVID-19 access restrictions among the reasons Statistics Canada gives. In 2016 there were 14. Their people are in no 2021 total, so Canada's 36,991,981 leaves out Kahnawake beside Montréal and Tsuu T'ina Nation beside Calgary, the way a SQL sum skips a NULL. Click a block or a ring for its numbers.

How it's made

One basemap and one layer. This is the whole map, minus the legend.

import { createMap } from '@unmap/sdk'

// Every 2021 census block: its population, dwellings and land area (Geographic Attribute File).
// A census NULL is an empty field, not 0: an incompletely enumerated reserve or settlement.
function classOf(block) {
  if (block.population === null) return 2 // NULL: no count
  if (block.population > 0) return null // people: not drawn
  return block.dwellings > 0 ? 1 : 0 // 0 people, with or without homes
}
// Then tile the blocks with c = classOf(block), leaving out the ones that come back null.

const map = createMap({ key: 'um_pk_live_...', container: '#map', style: 'muted', mode: 'dark' })
map.on('load', () => {
  map.addSource('blocks', { type: 'vector', url: 'pmtiles://zero.pmtiles' })
  const labels = map.getStyle().layers.find((l) => l.type === 'symbol').id
  map.addLayer({ id: 'blocks', type: 'fill', source: 'blocks', 'source-layer': 'blocks',
    paint: { 'fill-color': ['match', ['get', 'c'], 0, '#3E6E80', 1, '#F2B84B', '#FF3E9A'] } },
    labels) // under the place names
})

Population, private dwellings and land area for every block come from Statistics Canada's 2021 Geographic Attribute File, and the shapes from its cartographic dissemination block boundary file, which follows the shoreline. Areas are land areas, and the blocks add up to 8,788,703 km². A block is 0 when its published population is 0. Its dwellings are total private dwellings, so a block of 0 with dwellings has homes that were empty or were nobody's usual residence, and the census does not say which. The census counts people where they usually live, not where they were on 11 May, so a work camp or a cottage with people in it that day can still count 0. The 63 places with no count are the ones the file flags as incompletely enumerated reserves and settlements: their population and dwelling fields are empty, not 0. Their reasons are Statistics Canada's, from Appendix 1.5 of the Guide to the Census of Population, 2021. 239 blocks are all water and have no shape in the boundary file; two of them count 5 people each, and they are not drawn. At country scale the tiles merge each colour, so a click there names the colour; zoom in for the block. The script is scripts/build-challenge-zero.mjs in the unmap repository.

Data

  • Blocks, population and dwellings: Statistics Canada, 2021 Census, Geographic Attribute File (92-151-X) and dissemination block cartographic boundary file. Used under the Statistics Canada Open Licence.
  • Incompletely enumerated reserves and settlements: Statistics Canada, Guide to the Census of Population, 2021, Appendix 1.5.
  • Basemap: unmap, © OpenStreetMap contributors.

Share this map

Post it, or make your own and tag it #30DayMapChallenge.