Imagine there’s no countries.
It isn’t hard to do.
Imagine unioning all of the countries (turning all of the separate shapes below into one) … it turns out to be harder than I thought.
Attempt 1: st_union(geom) – this created one big shape, but with lots of little bits of borders
Attempt 2: st_union(st_makevalid(geom)) – this removed some of the internal borders, but it still looks pretty rubbish.
Attempt 3: st_union(st_snaptogrid(geom, 0.0005)) – this forces the individual shapes to be part of a grid, compensating for slight errors in the original data.
The world in Bonne projection. I think John Lennon would like that.
Which brings to mind a favourite saying of another Beatle:
Peace and love,
Peace and love