Skip to content

Instantly share code, notes, and snippets.

@gka
Created January 17, 2012 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gka/1629705 to your computer and use it in GitHub Desktop.
Save gka/1629705 to your computer and use it in GitHub Desktop.
world map with countries joined to UN regions
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"proj": {
"id": "naturalearth",
"lon0": 0
},
"layers": [{
"id": "regions",
"src": "shp/ne_10m_admin_0_countries.shp",
"attributes": [{
"src": "GU_A3", "tgt": "iso3"
}, "locid"],
"filter": {
"type": "exclude",
"attribute": "ISO_A3",
"equals": ["ATA"]
},
"join": {
"group-by": "GU_A3",
"group-as": "locid",
"groups": {
"1110000000000000": ["GAB", "CMR","RWA", "COG","COD","CAF","BDI","GNQ"],
"1120000000000000": ["TZA","SDS","SDN","SOM","UGA","DJI","ETH","ERI","KEN","TCD","SOL"],
"1130000000000000": ["ZMB","NAM","ZWE","MOZ","AGO","BWA","MWI","ZAF","LSO","SWZ","MDG"],
"1140000000000000": ["NGA","GMB","SLE","LBR","TGO","BEN","GHA","CIV","GIN","MLI","BFA","SEN","NER","GNB"],
"2110000000000000": ["USA","CAN","DOM","HTI","JAM", "PRI", "BHS","TTO"],
"2210000000000000": ["CUB","ARG","BRA","MEX","PER","ECU","VEN","BOL","PRY","URY","CHL","COL","GUY","SUR","SLV","HND","NIC","CRI","PAN","GTM","BLZ"],
"3310000000000000": ["KAZ", "KAB", "KGZ", "UZB", "TKM", "TJK"],
"3320000000000000": ["CHN", "MNG", "PNG", "AUS", "KOR", "PRK", "JPN", "TWN", "NZL", "NCL", "VUT", "SLB", "KNM"],
"3330000000000000": ["IND", "LKA", "NPL", "BTN","MDV"],
"3340000000000000": ["BGD", "MMR", "THA", "LAO", "VNM", "KHM", "MYS", "IDN", "BRN", "TLS", "PHL"],
"3350000000000000": ["IRN", "AFG", "PAK", "KAS"],
"4410000000000000": ["ARM","AZE","GEO","RUS","TUR","CYN","CNM","UKR","BLR","MDA"],
"4420000000000000": ["BIH","HRV","MNE","SRB","MKD"],
"4430000000000000": ["CHE", "LUX", "SVN", "ALB", "KOS", "CYP","PRT", "ESP", "FRA", "GBR", "IRL", "ISL", "DEU", "NLD", "BEL", "ITA", "AUT", "CZE", "POL", "DNK", "SWE", "NOR", "FIN","EST", "SVK", "LTU", "HUN", "BGR", "LVA", "GRC", "ROU"],
"5510000000000000": ["LBN", "SAU","OMN","YEM","ARE","IRQ","JOR","SYR","WEB","QAT","KWT","ISR"],
"5520000000000000": ["EGY","DZA","LBY","TUN","MAR","MRT","SAH"],
"---": ["FLK", "SGS", "ATF", "MUS", "GRL"]
}
},
"simplify": 2.5
}],
"bounds": {
"mode": "polygons",
"data": {
"layer": "regions",
"attribute": "ISO_A3",
"values": ["CAN","USA","ARG","NZL","GRL"],
"min_area": 0.05
},
"padding": 0.01
},
"export": {
"height": 1000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment