TrueScale Atlas

Home › Method and Accuracy

Method and Accuracy

Every number on this site comes from two computations: the area of a polygon on a sphere, and the amount by which the Mercator projection inflates that area at a given latitude. Both are published here so you can reproduce them.

1. Area on a sphere

Each boundary ring is integrated with the spherical excess formula. For consecutive vertices with longitudes λ and latitudes φ:

sum += (λ2 - λ1) * (2 + sin φ1 + sin φ2)
ring_area_steradians = |sum| / 2
area_km2 = ring_area_steradians * R^2,  R = 6371.0088 km

Longitude differences are wrapped to ±180° so shapes crossing the antimeridian integrate correctly. Holes are subtracted from their outer ring; a ring enclosing more than a hemisphere is replaced by its complement.

2. Mercator area inflation

Mercator is conformal: at latitude φ it stretches both axes by 1 / cos φ. Area therefore grows by the square of that factor:

inflation(φ) = 1 / cos²(φ)

At 74° that is about 13.4×. Near the equator it is about 1.0×. Multiplying each country's real area by its own inflation gives the visual area it occupies on a wall map, which is why Greenland and Africa look like twins.

3. Moving a country without changing its size

Each vertex becomes a unit vector. We rotate the whole outline from its spherical centroid to the target latitude and longitude using Rodrigues' rotation formula, then project the result. Rotation is rigid, so spherical area is preserved exactly.

4. Why the share images are area-true

A picture that claims to show real size must not use Mercator either. Share images project every polygon with Lambert azimuthal equal-area, centred on that entity's own area-weighted centroid:

cos c = sin φ0 sin φ + cos φ0 cos φ cos(λ - λ0)
k = sqrt(2 / (1 + cos c))
x = R k cos φ sin(λ - λ0)
y = R k (cos φ0 sin φ - sin φ0 cos φ cos(λ - λ0))

Both entities are then drawn with one shared linear scale, and every polygon is included — a continent is all of its member countries, not its largest one. Because the projection is equal-area, pixel count is proportional to land area. The build audits this: it decodes each PNG, counts the two shape colours and fails if the pixel ratio drifts more than 15% from the true area ratio.

Worked example

Greenland: 2,190,196 km², mean latitude 74°, inflation 13.4×, apparent area about 29.4 million km². Africa: 29,873,637 km², mean latitude 6°, inflation 1.0×, apparent area about 30.2 million km². Apparent ratio 1 : 1.03. True ratio 1 : 13.64 — and in the share image Africa covers about 13.6 times more pixels.

Limits

Source

Natural Earth 1:110m cultural vectors, public domain, distributed via the world-atlas TopoJSON package. Each comparison page publishes its own figures as areas.json.