A Beginner's Guide to UK Postcodes for Geospatial Analysis
October 09, 2026 - Geodata
What is the width of a river? A vector dataset answers with a surveyed line, a coordinate at each bend and an attribute table. A raster dataset answers with a row of pixels, each holding a value. Both are correct. They behave very differently once you start measuring, styling or storing the result, and the choice you make early tends to follow a project all the way to the printed map.
A raster covers an area with a regular grid of cells. Every cell holds one value per band, and that value might represent elevation, temperature, rainfall, a land-cover class or a colour from a satellite sensor. The cell size is the resolution: a ten-metre raster spends a hundred square metres of ground on every single number. That is elegant for anything that changes gradually across space, and blunt for anything with a sharp edge.
A vector stores features as coordinates — points, lines and polygons — with attributes attached. A bus stop is a point, a road centreline is a line, a council boundary is a polygon. Because the geometry is exact, a boundary falls where you say it falls rather than at the nearest cell edge. Features also have identity: each row can carry a name, a code, a date and anything else you can fit in a table.
Satellite and aerial imagery arrives as raster. So do elevation models, slope, aspect, hillshades and nearly every modelled surface, from flood depth to noise propagation. Continuous phenomena resist being chopped into polygons, because you would need an arbitrary number of them and would still be guessing between the edges.
Raster also handles cell-by-cell arithmetic gracefully. Subtract one season's vegetation index from another, add a rainfall layer into a runoff model, or build a cost surface for a least-cost path. These operations run simply and quickly across millions of cells. The trade-offs are real, though: mixed pixels, where one cell covers both tarmac and grass and receives a single averaged number; file sizes that grow with the square of resolution; and hard edges that look blocky when a user zooms in.
Vector suits things with identity. A planning application, a postcode district, a pipeline, a delivery round. Each feature is a record, so you can attach attributes and join them to a spreadsheet by a shared key. Topology matters as well: shared boundaries between neighbouring polygons, and road networks where turn restrictions and one-way streets drive realistic routing. Network analysis on a raster road layer is approximate at best; on a vector network it is exact.
Sparse data stays compact in vector form. Ten thousand scattered points are a few hundred kilobytes as GeoJSON and many megabytes as a raster fine enough to show them individually. Watch the vertex count, though. A boundary digitised at 1:1000 will not line up neatly with one digitised at 1:25000, and a coastline traced from high-resolution imagery can carry far more detail than the map will ever display.
Raster size is roughly rows × columns × bands × bit depth before compression. Doubling the resolution quadruples the cell count, which is why pyramids and overviews matter: pre-built lower-resolution copies let a viewer load a zoomed-out map instantly instead of reading the full dataset. For vector, size scales with the number of vertices rather than the area covered, and a spatial index is what keeps a map panning smoothly.
Vectors scale cleanly. A line stays a line at any zoom, which is why boundaries, labels and road centrelines are almost always drawn as vectors. Rasters soften or pixelate when over-zoomed unless the viewer is swapping between overview levels, and rasterising polygons for a print map at high DPI gives noticeably jagged edges unless you oversample.
The opposite is also true. A choropleth built from large, irregular polygons can flatter the data, because the eye reads area as importance. A continuous surface — a hillshade, a heat map, a smooth interpolated field — reads more honestly as raster. Most web maps quietly combine both: vector tiles for labels and boundaries sitting over a raster basemap.
The formats are not rivals, and most real projects use both. Zonal statistics takes a raster surface and summarises it inside vector zones — average canopy height per ward, mean slope per field parcel. A vector mask clips imagery to a study area before analysis. A classified raster can be vectorised to produce tidy polygons, then simplified so the file stays manageable. Convert deliberately, check the result, and keep the original: every conversion loses something, whether that is precision, attribute detail or edge accuracy.
If you need a value everywhere, choose raster. If you need to know exactly where something is, choose vector.
Get those six points settled and the raster-versus-vector question usually answers itself. Where it does not, pick the format that preserves the original measurements, and convert later if the display demands it.
Photo: Markus Spiske / Pexels
Copyright © 2026 Atlas Bit. All Right Reserved.