Merge pull request #169 from CartoDB/iri/iso_codes_native

Avoid empty iso3 codes from synonyms
This commit is contained in:
Carla
2015-10-26 17:33:32 +01:00
2 changed files with 17 additions and 15 deletions

View File

@@ -46,15 +46,15 @@ TLS,East Timor,Timor Lorosa'e
BHS,Bahamas,The Bahamas
CHN,China,Zhōngguó
EGY,Egypt,Misr or Masr
,Equatorial Guinea,Guinea Ecuatorial
GNQ,Equatorial Guinea,Guinea Ecuatorial
ERI,Eritrea,Iritriya
EST,Estonia,Eesti
ETH,Ethiopia,Ityop'ia
FLK,Falkland Islands,Falkland Islands
,Faroe Islands,Føroyar
FRO,Faroe Islands,Føroyar
FJI,Fiji,Fiji
FIN,Finland,Suomi
,French Guiana,Guyane
GUF,French Guiana,Guyane
PYF,French Polynesia,Polynésie française
GEO,Georgia,Sak'art'velo
DEU,Germany,Deutschland
@@ -88,8 +88,8 @@ LVA,Latvia,Latvija
PHL,Philippines,Pilipinas
PRT,Portugal,Portugal
QAT,Qatar,Qaṭar
,Republic of the Congo,République du Congo
,Réunion,Réunion
COG,Republic of the Congo,République du Congo
REU,Réunion,Réunion
ROU,Romania,România
RUS,Russia,Rossiya or Rossiâ
BLM,Saint Barthélemy,Saint-Barthélemy
@@ -98,7 +98,7 @@ USA,United States,United States
URY,Uruguay,República Oriental del Uruguay
UZB,Uzbekistan,Ozbekiston
VUT,Vanuatu,Vanuatu
,Vatican City,Città del Vaticano
VAT,Vatican City,Città del Vaticano
VNM,Vietnam,Việt Nam
LBY,Libya,Libya
LIE,Liechtenstein,Liechtenstein
@@ -112,7 +112,7 @@ MLI,Mali,Mali
MLT,Malta,Malta
MRT,Mauritania,Muritan / Agawec
MUS,Mauritius,Maurice
,Mayotte,Mayotte
MYT,Mayotte,Mayotte
MEX,Mexico,México
MDA,Moldova,Moldova
MCO,Monaco,Monaco
@@ -127,13 +127,13 @@ NLD,Netherlands,Nederland
NCL,New Caledonia,Nouvelle-Calédonie
NZL,New Zealand,New Zealand
NIU,Niue,Niuē
,North Korea,Chosŏn as called in NK
,Northern Cyprus,Kuzey Kıbrıs
PRK,North Korea,Chosŏn as called in NK
CYN,Northern Cyprus,Kuzey Kıbrıs
NOR,Norway,Norge
OMN,Oman,Umān
PAK,Pakistan,Pākistān (Islamic Republic of Pakistan)
PLW,Palau,Belau
,Palestinian National Authority,Filastīn
PSX,Palestinian National Authority,Filastīn
PAN,Panama,Panamá
PNG,Papua New Guinea,Papua New Guinea
PRY,Paraguay,Paraguay
@@ -141,7 +141,7 @@ PER,Peru,Perú
POL,Poland,Polska
LBN,Lebanon,Lubnān
SPM,Saint Pierre and Miquelon,Saint-Pierre et Miquelon
,São Tomé and Príncipe,São Tomé e Príncipe
STP,São Tomé and Príncipe,São Tomé e Príncipe
SAU,Saudi Arabia,Al-Mamlaka Al-Arabiyyah as Saūdiyyah
,Wallis and Futuna,Wallis-et-Futuna
YEM,Yemen,Al-Yaman
@@ -153,10 +153,10 @@ SXM,Sint Maarten,Sint Maarten
SVK,Slovakia,Slovensko
TON,Tonga,Tonga
SVN,Slovenia,Slovenija
,Solomon Islands,Solomon Islands
SLB,Solomon Islands,Solomon Islands
SOM,Somalia,Soomaaliya
ZAF,South Africa,South Africa
,South Korea,Hanguk as called in SK
KOR,South Korea,Hanguk as called in SK
,South Ossetia,Khussar Iryston
ESP,Spain,España
LKA,Sri Lanka,Sri Lankā
@@ -165,7 +165,7 @@ SDN,Sudan,As-Sudan
SWE,Sweden,Sverige
CHE,Switzerland,Schweiz
SYR,Syria,Suriyah
,Taiwan (Republic of China),Zhōnghuá Mínguó or Táiwan
TWN,Taiwan (Republic of China),Zhōnghuá Mínguó or Táiwan
TJK,Tajikistan,Tojikistan
TUN,Tunisia,Tunes
THA,Thailand,"Mueang Thai, Prathet Thai, Ratcha-anachak Thai"
1 adm0_a3 country_exonym country_endonym
46 BHS Bahamas The Bahamas
47 CHN China Zhōngguó
48 EGY Egypt Misr or Masr
49 GNQ Equatorial Guinea Guinea Ecuatorial
50 ERI Eritrea Iritriya
51 EST Estonia Eesti
52 ETH Ethiopia Ityop'ia
53 FLK Falkland Islands Falkland Islands
54 FRO Faroe Islands Føroyar
55 FJI Fiji Fiji
56 FIN Finland Suomi
57 GUF French Guiana Guyane
58 PYF French Polynesia Polynésie française
59 GEO Georgia Sak'art'velo
60 DEU Germany Deutschland
88 PHL Philippines Pilipinas
89 PRT Portugal Portugal
90 QAT Qatar Qaṭar
91 COG Republic of the Congo République du Congo
92 REU Réunion Réunion
93 ROU Romania România
94 RUS Russia Rossiya or Rossiâ
95 BLM Saint Barthélemy Saint-Barthélemy
98 URY Uruguay República Oriental del Uruguay
99 UZB Uzbekistan O‘zbekiston
100 VUT Vanuatu Vanuatu
101 VAT Vatican City Città del Vaticano
102 VNM Vietnam Việt Nam
103 LBY Libya Libya
104 LIE Liechtenstein Liechtenstein
112 MLT Malta Malta
113 MRT Mauritania Muritan / Agawec
114 MUS Mauritius Maurice
115 MYT Mayotte Mayotte
116 MEX Mexico México
117 MDA Moldova Moldova
118 MCO Monaco Monaco
127 NCL New Caledonia Nouvelle-Calédonie
128 NZL New Zealand New Zealand
129 NIU Niue Niuē
130 PRK North Korea Chosŏn as called in NK
131 CYN Northern Cyprus Kuzey Kıbrıs
132 NOR Norway Norge
133 OMN Oman ‘Umān
134 PAK Pakistan Pākistān (Islamic Republic of Pakistan)
135 PLW Palau Belau
136 PSX Palestinian National Authority Filastīn
137 PAN Panama Panamá
138 PNG Papua New Guinea Papua New Guinea
139 PRY Paraguay Paraguay
141 POL Poland Polska
142 LBN Lebanon Lubnān
143 SPM Saint Pierre and Miquelon Saint-Pierre et Miquelon
144 STP São Tomé and Príncipe São Tomé e Príncipe
145 SAU Saudi Arabia Al-Mamlaka Al-‘Arabiyyah as Sa‘ūdiyyah
146 Wallis and Futuna Wallis-et-Futuna
147 YEM Yemen Al-Yaman
153 SVK Slovakia Slovensko
154 TON Tonga Tonga
155 SVN Slovenia Slovenija
156 SLB Solomon Islands Solomon Islands
157 SOM Somalia Soomaaliya
158 ZAF South Africa South Africa
159 KOR South Korea Hanguk as called in SK
160 South Ossetia Khussar Iryston
161 ESP Spain España
162 LKA Sri Lanka Sri Lankā
165 SWE Sweden Sverige
166 CHE Switzerland Schweiz
167 SYR Syria Suriyah
168 TWN Taiwan (Republic of China) Zhōnghuá Mínguó or Táiwan
169 TJK Tajikistan Tojikistan
170 TUN Tunisia Tunes
171 THA Thailand Mueang Thai, Prathet Thai, Ratcha-anachak Thai

View File

@@ -37,7 +37,9 @@ INSERT INTO admin0_synonyms (name, rank, adm0_a3)
SELECT
country_endonym, 2, adm0_a3
FROM
wikipedia_countries_native_names;
wikipedia_countries_native_names
WHERE
adm0_a3 IS NOT null;
-- insert ad0_a3 codes as synonyms with a rank = 3
INSERT INTO admin0_synonyms (name, rank, adm0_a3)