Tags

, , ,

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.

20150331-AllCountries_attempt0_zoom1

Original data – lots of countries in the original projections (WGS84). This an other images on the page by jamesgeo.com Released under Creative Commons Share-alike license 4.0 Countries modified from thematicmapping.com

20150401-AllCountries_attempt1_zoom1

Attempt 1: st_union(geom) – this created one big shape, but with lots of little bits of borders

20150401-AllCountries_attempt2_zoom1

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.

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.

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

Thanks, Ringo.

Advertisements