Source: https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_50m_admin_0_countries.geojson Clues: https://medium.com/@mbostock/command-line-cartography-part-2-c3a82c5c0f3 Commands:
ndjson-split 'd.features' \
< ne_50m_admin_0_countries.geojson \
| ndjson-filter 'd.properties.ISO_A3 !== "ATA"' \
| ndjson-filter 'd.properties = {ISO_A3: d.properties.ISO_A3, ISO_N3: d.properties.ISO_N3, REGION_UN: d.properties.REGION_UN, SUBREGION: d.properties.SUBREGION, NAME: d.properties.GEOUNIT, REGION_WB: d.properties.REGION_WB, CONTINENT: d.properties.CONTINENT }' \
| geo2topo -n countries=- \
> ne_50m_6f_countries.topo.json
topomerge subregions=countries -k 'd.SUBREGION' < ne_50m_6f_countries.topo.json > ne_50m_6f_countries_subs.topo.json
topomerge regions=subregions -k 'd.REGION_WB' < ne_50m_6f_countries_subs.topo.json > ne_50m_6f_countries_subs_regs.topo.json
toposimplify -p .1 -f < ne_50m_6f_countries_subs_regs.topo.json > nes_50m_6f_countries_subs_regs.topo.json