fix geo tools wikipedia module

This commit is contained in:
rolux 2011-10-12 02:14:05 +02:00
parent 126fb3956e
commit 80ad054cfa
5 changed files with 414 additions and 2546 deletions

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
{"code": "GE-AB", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/27/Flag_of_Abkhazia.svg", "name": "Abkhazia", "wikipediaURL": "http://en.wikipedia.org/wiki/Abkhazia"},
{"code": "FR-AQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_the_French_Southern_and_Antarctic_Lands.svg", "name": "Ad\u00e9lie Land", "wikipediaURL": "http://en.wikipedia.org/wiki/Ad\u00e9lie_Land"},
{"code": "AF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Afghanistan.svg", "name": "Afghanistan", "wikipediaURL": "http://en.wikipedia.org/wiki/Afghanistan"},
{"code": "GB-AD", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg", "name": "Akrotiri and Dhekelia", "wikipediaURL": "http://en.wikipedia.org/wiki/Akrotiri_and_Dhekelia"},
{"code": "GB-AD", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg", "name": "Akrotiri and Dhekelia", "wikipediaURL": "http://en.wikipedia.org/wiki/Akrotiri_and_Dhekelia"},
{"code": "AL", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg", "name": "Albania", "wikipediaURL": "http://en.wikipedia.org/wiki/Albania"},
{"code": "DZ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Algeria.svg", "name": "Algeria", "wikipediaURL": "http://en.wikipedia.org/wiki/Algeria"},
{"code": "AS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/87/Flag_of_American_Samoa.svg", "name": "American Samoa", "wikipediaURL": "http://en.wikipedia.org/wiki/American_Samoa"},
@ -16,10 +16,10 @@
{"code": "AR-AQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/01/Flag_of_Tierra_del_Fuego_province_in_Argentina.svg", "name": "Argentine Antarctica", "wikipediaURL": "http://en.wikipedia.org/wiki/Argentine_Antarctica"},
{"code": "AM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/2f/Flag_of_Armenia.svg", "name": "Armenia", "wikipediaURL": "http://en.wikipedia.org/wiki/Armenia"},
{"code": "AW", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/f6/Flag_of_Aruba.svg", "name": "Aruba", "wikipediaURL": "http://en.wikipedia.org/wiki/Aruba"},
{"code": "AC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg", "name": "Ascension Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Ascension_Island"},
{"code": "AU-AC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_Australia.svg", "name": "Ashmore and Cartier Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Ashmore_and_Cartier_Islands"},
{"code": "AU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_Australia.svg", "name": "Australia", "wikipediaURL": "http://en.wikipedia.org/wiki/Australia"},
{"code": "AU-AQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_Australia.svg", "name": "Australian Antarctic Territory", "wikipediaURL": "http://en.wikipedia.org/wiki/Australian_Antarctic_Territory"},
{"code": "AC", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg", "name": "Ascension Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Ascension_Island"},
{"code": "AU-AC", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/b9/Flag_of_Australia.svg", "name": "Ashmore and Cartier Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Ashmore_and_Cartier_Islands"},
{"code": "AU", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/b9/Flag_of_Australia.svg", "name": "Australia", "wikipediaURL": "http://en.wikipedia.org/wiki/Australia"},
{"code": "AU-AQ", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/b9/Flag_of_Australia.svg", "name": "Australian Antarctic Territory", "wikipediaURL": "http://en.wikipedia.org/wiki/Australian_Antarctic_Territory"},
{"code": "AT", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Austria.svg", "name": "Austria", "wikipediaURL": "http://en.wikipedia.org/wiki/Austria"},
{"code": "AZ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/dd/Flag_of_Azerbaijan.svg", "name": "Azerbaijan", "wikipediaURL": "http://en.wikipedia.org/wiki/Azerbaijan"},
{"code": "BS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/93/Flag_of_the_Bahamas.svg", "name": "Bahamas", "wikipediaURL": "http://en.wikipedia.org/wiki/Bahamas"},
@ -32,12 +32,12 @@
{"code": "BJ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/0a/Flag_of_Benin.svg", "name": "Benin", "wikipediaURL": "http://en.wikipedia.org/wiki/Benin"},
{"code": "BM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bf/Flag_of_Bermuda.svg", "name": "Bermuda", "wikipediaURL": "http://en.wikipedia.org/wiki/Bermuda"},
{"code": "BT", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/91/Flag_of_Bhutan.svg", "name": "Bhutan", "wikipediaURL": "http://en.wikipedia.org/wiki/Bhutan"},
{"code": "BO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/de/Flag_of_Bolivia_%28state%29.svg", "name": "Bolivia", "wikipediaURL": "http://en.wikipedia.org/wiki/Bolivia"},
{"code": "BO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/48/Flag_of_Bolivia.svg", "name": "Bolivia", "wikipediaURL": "http://en.wikipedia.org/wiki/Bolivia"},
{"code": "BQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Flag_of_Bonaire.svg", "name": "Bonaire, Saint Eustatius and Saba", "wikipediaURL": "http://en.wikipedia.org/wiki/Bonaire,_Saint_Eustatius_and_Saba"},
{"code": "BA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bf/Flag_of_Bosnia_and_Herzegovina.svg", "name": "Bosnia and Herzegovina", "wikipediaURL": "http://en.wikipedia.org/wiki/Bosnia_and_Herzegovina"},
{"code": "BW", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_Botswana.svg", "name": "Botswana", "wikipediaURL": "http://en.wikipedia.org/wiki/Botswana"},
{"code": "BV", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg", "name": "Bouvet Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Bouvet_Island"},
{"code": "BR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/05/Flag_of_Brazil.svg", "name": "Brazil", "wikipediaURL": "http://en.wikipedia.org/wiki/Brazil"},
{"code": "BR", "flagURL": "http://upload.wikimedia.org/wikipedia/en/0/05/Flag_of_Brazil.svg", "name": "Brazil", "wikipediaURL": "http://en.wikipedia.org/wiki/Brazil"},
{"code": "BQAQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Flag_of_the_British_Antarctic_Territory.svg", "name": "British Antarctic Territory", "wikipediaURL": "http://en.wikipedia.org/wiki/British_Antarctic_Territory"},
{"code": "IO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/6/6e/Flag_of_the_British_Indian_Ocean_Territory.svg", "name": "British Indian Ocean Territory", "wikipediaURL": "http://en.wikipedia.org/wiki/British_Indian_Ocean_Territory"},
{"code": "VG", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/42/Flag_of_the_British_Virgin_Islands.svg", "name": "British Virgin Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/British_Virgin_Islands"},
@ -50,7 +50,7 @@
{"code": "CI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/86/Flag_of_Cote_d%27Ivoire.svg", "name": "C\u00f4te d'Ivoire", "wikipediaURL": "http://en.wikipedia.org/wiki/C%C3%B4te_d%27Ivoire"},
{"code": "KH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/83/Flag_of_Cambodia.svg", "name": "Cambodia", "wikipediaURL": "http://en.wikipedia.org/wiki/Cambodia"},
{"code": "CM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4f/Flag_of_Cameroon.svg", "name": "Cameroon", "wikipediaURL": "http://en.wikipedia.org/wiki/Cameroon"},
{"code": "CA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/cf/Flag_of_Canada.svg", "name": "Canada", "wikipediaURL": "http://en.wikipedia.org/wiki/Canada"},
{"code": "CA", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/cf/Flag_of_Canada.svg", "name": "Canada", "wikipediaURL": "http://en.wikipedia.org/wiki/Canada"},
{"code": "IC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/b0/Flag_of_the_Canary_Islands.svg", "name": "Canary Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Canary_Islands"},
{"code": "CTKI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4d/Flag_of_Gilbert_and_Ellice_Islands.svg", "name": "Canton and Enderbury Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Canton_and_Enderbury_Islands"},
{"code": "CV", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/38/Flag_of_Cape_Verde.svg", "name": "Cape Verde", "wikipediaURL": "http://en.wikipedia.org/wiki/Cape_Verde"},
@ -59,14 +59,15 @@
{"code": "EA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fd/Flag_Ceuta.svg", "name": "Ceuta and Melilla", "wikipediaURL": "http://en.wikipedia.org/wiki/Ceuta_and_Melilla"},
{"code": "TD", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4b/Flag_of_Chad.svg", "name": "Chad", "wikipediaURL": "http://en.wikipedia.org/wiki/Chad"},
{"code": "CL", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/78/Flag_of_Chile.svg", "name": "Chile", "wikipediaURL": "http://en.wikipedia.org/wiki/Chile"},
{"code": "CN", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg", "name": "China", "wikipediaURL": "http://en.wikipedia.org/wiki/China"},
{"code": "CX", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/6/67/Flag_of_Christmas_Island.svg", "name": "Christmas Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Christmas_Island"},
{"code": "CP", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "Clipperton Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Clipperton_Island"},
{"code": "CP", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg", "name": "Clipperton Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Clipperton_Island"},
{"code": "CC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/74/Flag_of_the_Cocos_%28Keeling%29_Islands.svg", "name": "Cocos Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Cocos_Islands"},
{"code": "MF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/ec/Flag_of_Saint-Martin_%28local%29.svg", "name": "Saint Martin", "wikipediaURL": "http://en.wikipedia.org/wiki/Collectivity_of_Saint_Martin"},
{"code": "CO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_Colombia.svg", "name": "Colombia", "wikipediaURL": "http://en.wikipedia.org/wiki/Colombia"},
{"code": "KM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/94/Flag_of_the_Comoros.svg", "name": "Comoros", "wikipediaURL": "http://en.wikipedia.org/wiki/Comoros"},
{"code": "CK", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/35/Flag_of_the_Cook_Islands.svg", "name": "Cook Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Cook_Islands"},
{"code": "AU-CS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/b9/Flag_of_Australia.svg", "name": "Coral Sea Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Coral_Sea_Islands"},
{"code": "AU-CS", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/b9/Flag_of_Australia.svg", "name": "Coral Sea Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Coral_Sea_Islands"},
{"code": "CR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_Costa_Rica_%28state%29.svg", "name": "Costa Rica", "wikipediaURL": "http://en.wikipedia.org/wiki/Costa_Rica"},
{"code": "HR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Flag_of_Croatia.svg", "name": "Croatia", "wikipediaURL": "http://en.wikipedia.org/wiki/Croatia"},
{"code": "CU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bd/Flag_of_Cuba.svg", "name": "Cuba", "wikipediaURL": "http://en.wikipedia.org/wiki/Cuba"},
@ -85,7 +86,7 @@
{"code": "EC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/e8/Flag_of_Ecuador.svg", "name": "Ecuador", "wikipediaURL": "http://en.wikipedia.org/wiki/Ecuador"},
{"code": "EG", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fe/Flag_of_Egypt.svg", "name": "Egypt", "wikipediaURL": "http://en.wikipedia.org/wiki/Egypt"},
{"code": "SV", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/34/Flag_of_El_Salvador.svg", "name": "El Salvador", "wikipediaURL": "http://en.wikipedia.org/wiki/El_Salvador"},
{"code": "GB-ENG", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/be/Flag_of_England.svg", "name": "England", "wikipediaURL": "http://en.wikipedia.org/wiki/England"},
{"code": "GB-ENG", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/be/Flag_of_England.svg", "name": "England", "wikipediaURL": "http://en.wikipedia.org/wiki/England"},
{"code": "GQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/31/Flag_of_Equatorial_Guinea.svg", "name": "Equatorial Guinea", "wikipediaURL": "http://en.wikipedia.org/wiki/Equatorial_Guinea"},
{"code": "ER", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/29/Flag_of_Eritrea.svg", "name": "Eritrea", "wikipediaURL": "http://en.wikipedia.org/wiki/Eritrea"},
{"code": "EE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/8f/Flag_of_Estonia.svg", "name": "Estonia", "wikipediaURL": "http://en.wikipedia.org/wiki/Estonia"},
@ -96,16 +97,16 @@
{"code": "FM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/e4/Flag_of_the_Federated_States_of_Micronesia.svg", "name": "Micronesia", "wikipediaURL": "http://en.wikipedia.org/wiki/Federated_States_of_Micronesia"},
{"code": "FJ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Fiji.svg", "name": "Fiji", "wikipediaURL": "http://en.wikipedia.org/wiki/Fiji"},
{"code": "FI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_Finland.svg", "name": "Finland", "wikipediaURL": "http://en.wikipedia.org/wiki/Finland"},
{"code": "FR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "France", "wikipediaURL": "http://en.wikipedia.org/wiki/France"},
{"code": "FR", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg", "name": "France", "wikipediaURL": "http://en.wikipedia.org/wiki/France"},
{"code": "GF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/29/Flag_of_French_Guiana.svg", "name": "French Guiana", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Guiana"},
{"code": "PF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/db/Flag_of_French_Polynesia.svg", "name": "French Polynesia", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Polynesia"},
{"code": "TF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_the_French_Southern_and_Antarctic_Lands.svg", "name": "French Southern Territories", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Southern_Territories"},
{"code": "FQHH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a7/Flag_of_the_French_Southern_and_Antarctic_Lands.svg", "name": "French Southern and Antarctic Territories", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Southern_and_Antarctic_Territories"},
{"code": "AIDJ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "French Afar and Issas", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Territory_of_the_Afars_and_the_Issas"},
{"code": "AIDJ", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg", "name": "French Afar and Issas", "wikipediaURL": "http://en.wikipedia.org/wiki/French_Territory_of_the_Afars_and_the_Issas"},
{"code": "GA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/04/Flag_of_Gabon.svg", "name": "Gabon", "wikipediaURL": "http://en.wikipedia.org/wiki/Gabon"},
{"code": "GM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_The_Gambia.svg", "name": "Gambia", "wikipediaURL": "http://en.wikipedia.org/wiki/Gambia"},
{"code": "GE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/0f/Flag_of_Georgia.svg", "name": "Georgia", "wikipediaURL": "http://en.wikipedia.org/wiki/Georgia_(country)"},
{"code": "DE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg", "name": "Germany", "wikipediaURL": "http://en.wikipedia.org/wiki/Germany"},
{"code": "DE", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/ba/Flag_of_Germany.svg", "name": "Germany", "wikipediaURL": "http://en.wikipedia.org/wiki/Germany"},
{"code": "GH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/19/Flag_of_Ghana.svg", "name": "Ghana", "wikipediaURL": "http://en.wikipedia.org/wiki/Ghana"},
{"code": "GI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/02/Flag_of_Gibraltar.svg", "name": "Gibraltar", "wikipediaURL": "http://en.wikipedia.org/wiki/Gibraltar"},
{"code": "GEHH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4d/Flag_of_Gilbert_and_Ellice_Islands.svg", "name": "Gilbert and Ellice Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Gilbert_and_Ellice_Islands"},
@ -125,15 +126,15 @@
{"code": "HK", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/5b/Flag_of_Hong_Kong.svg", "name": "Hong Kong", "wikipediaURL": "http://en.wikipedia.org/wiki/Hong_Kong"},
{"code": "HU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c1/Flag_of_Hungary.svg", "name": "Hungary", "wikipediaURL": "http://en.wikipedia.org/wiki/Hungary"},
{"code": "IS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/ce/Flag_of_Iceland.svg", "name": "Iceland", "wikipediaURL": "http://en.wikipedia.org/wiki/Iceland"},
{"code": "IN", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_India.svg", "name": "India", "wikipediaURL": "http://en.wikipedia.org/wiki/India"},
{"code": "IN", "flagURL": "http://upload.wikimedia.org/wikipedia/en/4/41/Flag_of_India.svg", "name": "India", "wikipediaURL": "http://en.wikipedia.org/wiki/India"},
{"code": "ID", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Indonesia.svg", "name": "Indonesia", "wikipediaURL": "http://en.wikipedia.org/wiki/Indonesia"},
{"code": "IR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/ca/Flag_of_Iran.svg", "name": "Iran", "wikipediaURL": "http://en.wikipedia.org/wiki/Iran"},
{"code": "IQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/f6/Flag_of_Iraq.svg", "name": "Iraq", "wikipediaURL": "http://en.wikipedia.org/wiki/Iraq"},
{"code": "IM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_the_Isle_of_Man.svg", "name": "Isle of Man", "wikipediaURL": "http://en.wikipedia.org/wiki/Isle_of_Man"},
{"code": "IL", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_Israel.svg", "name": "Israel", "wikipediaURL": "http://en.wikipedia.org/wiki/Israel"},
{"code": "IT", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/03/Flag_of_Italy.svg", "name": "Italy", "wikipediaURL": "http://en.wikipedia.org/wiki/Italy"},
{"code": "IT", "flagURL": "http://upload.wikimedia.org/wikipedia/en/0/03/Flag_of_Italy.svg", "name": "Italy", "wikipediaURL": "http://en.wikipedia.org/wiki/Italy"},
{"code": "JM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/0a/Flag_of_Jamaica.svg", "name": "Jamaica", "wikipediaURL": "http://en.wikipedia.org/wiki/Jamaica"},
{"code": "JP", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/9e/Flag_of_Japan.svg", "name": "Japan", "wikipediaURL": "http://en.wikipedia.org/wiki/Japan"},
{"code": "JP", "flagURL": "http://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg", "name": "Japan", "wikipediaURL": "http://en.wikipedia.org/wiki/Japan"},
{"code": "JE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Flag_of_Jersey.svg", "name": "Jersey", "wikipediaURL": "http://en.wikipedia.org/wiki/Jersey"},
{"code": "JTUM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/e5/Flag_of_Johnston_Atoll_%28local%29.svg", "name": "Johnston Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Johnston_Island"},
{"code": "JO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c0/Flag_of_Jordan.svg", "name": "Jordan", "wikipediaURL": "http://en.wikipedia.org/wiki/Jordan"},
@ -163,8 +164,8 @@
{"code": "MQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/52/Flag_of_Martinique.svg", "name": "Martinique", "wikipediaURL": "http://en.wikipedia.org/wiki/Martinique"},
{"code": "MR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/43/Flag_of_Mauritania.svg", "name": "Mauritania", "wikipediaURL": "http://en.wikipedia.org/wiki/Mauritania"},
{"code": "MU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Mauritius.svg", "name": "Mauritius", "wikipediaURL": "http://en.wikipedia.org/wiki/Mauritius"},
{"code": "YT", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "Mayotte", "wikipediaURL": "http://en.wikipedia.org/wiki/Mayotte"},
{"code": "FXFR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "Metropolitan France", "wikipediaURL": "http://en.wikipedia.org/wiki/Metropolitan_France"},
{"code": "YT", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg", "name": "Mayotte", "wikipediaURL": "http://en.wikipedia.org/wiki/Mayotte"},
{"code": "FXFR", "flagURL": "http://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg", "name": "Metropolitan France", "wikipediaURL": "http://en.wikipedia.org/wiki/Metropolitan_France"},
{"code": "MX", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg", "name": "Mexico", "wikipediaURL": "http://en.wikipedia.org/wiki/Mexico"},
{"code": "MIUM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/2a/Flag_of_the_Midway_Islands_%28local%29.svg", "name": "Midway Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Midway_Islands"},
{"code": "MD", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/27/Flag_of_Moldova.svg", "name": "Moldova", "wikipediaURL": "http://en.wikipedia.org/wiki/Moldova"},
@ -181,7 +182,7 @@
{"code": "NP", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/9b/Flag_of_Nepal.svg", "name": "Nepal", "wikipediaURL": "http://en.wikipedia.org/wiki/Nepal"},
{"code": "NL", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg", "name": "Netherlands", "wikipediaURL": "http://en.wikipedia.org/wiki/Netherlands"},
{"code": "ANHH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/0f/Flag_of_the_Netherlands_Antilles_%281959-1986%29.svg", "name": "Netherlands Antilles", "wikipediaURL": "http://en.wikipedia.org/wiki/Netherlands_Antilles"},
{"code": "NC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg", "name": "New Caledonia", "wikipediaURL": "http://en.wikipedia.org/wiki/New_Caledonia"},
{"code": "NC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/23/Flag_of_New_Caledonia.svg", "name": "New Caledonia", "wikipediaURL": "http://en.wikipedia.org/wiki/New_Caledonia"},
{"code": "NHVU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/42/Flag_of_Anglo-French_Joint_Naval_Commission.svg", "name": "New Hebrides", "wikipediaURL": "http://en.wikipedia.org/wiki/New_Hebrides"},
{"code": "NZ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_New_Zealand.svg", "name": "New Zealand", "wikipediaURL": "http://en.wikipedia.org/wiki/New_Zealand"},
{"code": "NI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/19/Flag_of_Nicaragua.svg", "name": "Nicaragua", "wikipediaURL": "http://en.wikipedia.org/wiki/Nicaragua"},
@ -207,7 +208,7 @@
{"code": "NO-PI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg", "name": "Peter I Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Peter_I_Island"},
{"code": "PH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/99/Flag_of_the_Philippines.svg", "name": "Philippines", "wikipediaURL": "http://en.wikipedia.org/wiki/Philippines"},
{"code": "PN", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_the_Pitcairn_Islands.svg", "name": "Pitcairn Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Pitcairn_Islands"},
{"code": "PL", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/12/Flag_of_Poland.svg", "name": "Poland", "wikipediaURL": "http://en.wikipedia.org/wiki/Poland"},
{"code": "PL", "flagURL": "http://upload.wikimedia.org/wikipedia/en/1/12/Flag_of_Poland.svg", "name": "Poland", "wikipediaURL": "http://en.wikipedia.org/wiki/Poland"},
{"code": "PT", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Portugal.svg", "name": "Portugal", "wikipediaURL": "http://en.wikipedia.org/wiki/Portugal"},
{"code": "PR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/28/Flag_of_Puerto_Rico.svg", "name": "Puerto Rico", "wikipediaURL": "http://en.wikipedia.org/wiki/Puerto_Rico"},
{"code": "QA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/6/65/Flag_of_Qatar.svg", "name": "Qatar", "wikipediaURL": "http://en.wikipedia.org/wiki/Qatar"},
@ -223,7 +224,7 @@
{"code": "RHZW", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/e1/Flag_of_Rhodesia.svg", "name": "Rhodesia", "wikipediaURL": "http://en.wikipedia.org/wiki/Rhodesia"},
{"code": "RO", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/73/Flag_of_Romania.svg", "name": "Romania", "wikipediaURL": "http://en.wikipedia.org/wiki/Romania"},
{"code": "NZ-AQ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_New_Zealand.svg", "name": "Ross Dependency", "wikipediaURL": "http://en.wikipedia.org/wiki/Ross_Dependency"},
{"code": "RU", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Russia.svg", "name": "Russia", "wikipediaURL": "http://en.wikipedia.org/wiki/Russia"},
{"code": "RU", "flagURL": "http://upload.wikimedia.org/wikipedia/en/f/f3/Flag_of_Russia.svg", "name": "Russia", "wikipediaURL": "http://en.wikipedia.org/wiki/Russia"},
{"code": "RW", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/17/Flag_of_Rwanda.svg", "name": "Rwanda", "wikipediaURL": "http://en.wikipedia.org/wiki/Rwanda"},
{"code": "ST", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4f/Flag_of_Sao_Tome_and_Principe.svg", "name": "S\u00e3o Tom\u00e9 and Pr\u00edncipe", "wikipediaURL": "http://en.wikipedia.org/wiki/S%C3%A3o_Tom%C3%A9_and_Pr%C3%ADncipe"},
{"code": "EH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/2/26/Flag_of_the_Sahrawi_Arab_Democratic_Republic.svg", "name": "Sahrawi", "wikipediaURL": "http://en.wikipedia.org/wiki/Sahrawi_Arab_Democratic_Republic"},
@ -259,14 +260,14 @@
{"code": "SS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/7a/Flag_of_South_Sudan.svg", "name": "South Sudan", "wikipediaURL": "http://en.wikipedia.org/wiki/South_Sudan"},
{"code": "YDYE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/db/Flag_of_South_Yemen.svg", "name": "South Yemen", "wikipediaURL": "http://en.wikipedia.org/wiki/South_Yemen"},
{"code": "SUHH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a9/Flag_of_the_Soviet_Union.svg", "name": "Soviet Union", "wikipediaURL": "http://en.wikipedia.org/wiki/Soviet_Union"},
{"code": "ES", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Spain.svg", "name": "Spain", "wikipediaURL": "http://en.wikipedia.org/wiki/Spain"},
{"code": "ES", "flagURL": "http://upload.wikimedia.org/wikipedia/en/9/9a/Flag_of_Spain.svg", "name": "Spain", "wikipediaURL": "http://en.wikipedia.org/wiki/Spain"},
{"code": "LK", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/11/Flag_of_Sri_Lanka.svg", "name": "Sri Lanka", "wikipediaURL": "http://en.wikipedia.org/wiki/Sri_Lanka"},
{"code": "PS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/00/Flag_of_Palestine.svg", "name": "Palestine", "wikipediaURL": "http://en.wikipedia.org/wiki/State_of_Palestine"},
{"code": "SD", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/01/Flag_of_Sudan.svg", "name": "Sudan", "wikipediaURL": "http://en.wikipedia.org/wiki/Sudan"},
{"code": "SR", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/6/60/Flag_of_Suriname.svg", "name": "Suriname", "wikipediaURL": "http://en.wikipedia.org/wiki/Suriname"},
{"code": "SJ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg", "name": "Svalbard and Jan Mayen", "wikipediaURL": "http://en.wikipedia.org/wiki/Svalbard_and_Jan_Mayen"},
{"code": "SZ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/1e/Flag_of_Swaziland.svg", "name": "Swaziland", "wikipediaURL": "http://en.wikipedia.org/wiki/Swaziland"},
{"code": "SE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4c/Flag_of_Sweden.svg", "name": "Sweden", "wikipediaURL": "http://en.wikipedia.org/wiki/Sweden"},
{"code": "SE", "flagURL": "http://upload.wikimedia.org/wikipedia/en/4/4c/Flag_of_Sweden.svg", "name": "Sweden", "wikipediaURL": "http://en.wikipedia.org/wiki/Sweden"},
{"code": "CH", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/0/08/Flag_of_Switzerland_%28Pantone%29.svg", "name": "Switzerland", "wikipediaURL": "http://en.wikipedia.org/wiki/Switzerland"},
{"code": "SY", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/53/Flag_of_Syria.svg", "name": "Syria", "wikipediaURL": "http://en.wikipedia.org/wiki/Syria"},
{"code": "TJ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d0/Flag_of_Tajikistan.svg", "name": "Tajikistan", "wikipediaURL": "http://en.wikipedia.org/wiki/Tajikistan"},
@ -285,14 +286,14 @@
{"code": "TM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/1/1b/Flag_of_Turkmenistan.svg", "name": "Turkmenistan", "wikipediaURL": "http://en.wikipedia.org/wiki/Turkmenistan"},
{"code": "TC", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a0/Flag_of_the_Turks_and_Caicos_Islands.svg", "name": "Turks and Caicos Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/Turks_and_Caicos_Islands"},
{"code": "TV", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/3/38/Flag_of_Tuvalu.svg", "name": "Tuvalu", "wikipediaURL": "http://en.wikipedia.org/wiki/Tuvalu"},
{"code": "UK", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg", "name": "UK", "wikipediaURL": "http://en.wikipedia.org/wiki/UK"},
{"code": "UK", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg", "name": "UK", "wikipediaURL": "http://en.wikipedia.org/wiki/UK"},
{"code": "UG", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/4e/Flag_of_Uganda.svg", "name": "Uganda", "wikipediaURL": "http://en.wikipedia.org/wiki/Uganda"},
{"code": "UA", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/49/Flag_of_Ukraine.svg", "name": "Ukraine", "wikipediaURL": "http://en.wikipedia.org/wiki/Ukraine"},
{"code": "AE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_United_Arab_Emirates.svg", "name": "United Arab Emirates", "wikipediaURL": "http://en.wikipedia.org/wiki/United_Arab_Emirates"},
{"code": "GB", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg", "name": "United Kingdom", "wikipediaURL": "http://en.wikipedia.org/wiki/United_Kingdom"},
{"code": "GB", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg", "name": "United Kingdom", "wikipediaURL": "http://en.wikipedia.org/wiki/United_Kingdom"},
{"code": "US", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/e/e2/Flag_of_the_United_States_%28Pantone%29.svg", "name": "United States", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States"},
{"code": "UM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg", "name": "United States Minor Outlying Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States_Minor_Outlying_Islands"},
{"code": "PUUM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg", "name": "United States Miscellaneous Pacific Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States_Miscellaneous_Pacific_Islands"},
{"code": "UM", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg", "name": "United States Minor Outlying Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States_Minor_Outlying_Islands"},
{"code": "PUUM", "flagURL": "http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg", "name": "United States Miscellaneous Pacific Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States_Miscellaneous_Pacific_Islands"},
{"code": "VI", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/f8/Flag_of_the_United_States_Virgin_Islands.svg", "name": "United States Virgin Islands", "wikipediaURL": "http://en.wikipedia.org/wiki/United_States_Virgin_Islands"},
{"code": "UY", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/f/fe/Flag_of_Uruguay.svg", "name": "Uruguay", "wikipediaURL": "http://en.wikipedia.org/wiki/Uruguay"},
{"code": "UZ", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/84/Flag_of_Uzbekistan.svg", "name": "Uzbekistan", "wikipediaURL": "http://en.wikipedia.org/wiki/Uzbekistan"},
@ -303,7 +304,7 @@
{"code": "WKUM", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/4/47/Flag_of_Wake_Island.svg", "name": "Wake Island", "wikipediaURL": "http://en.wikipedia.org/wiki/Wake_Island"},
{"code": "GB-WLS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/59/Flag_of_Wales_2.svg", "name": "Wales", "wikipediaURL": "http://en.wikipedia.org/wiki/Wales"},
{"code": "WF", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/d/d2/Flag_of_Wallis_and_Futuna.svg", "name": "Wallis and Futuna", "wikipediaURL": "http://en.wikipedia.org/wiki/Wallis_and_Futuna"},
{"code": "DEDE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg", "name": "West Germany", "wikipediaURL": "http://en.wikipedia.org/wiki/West_Germany"},
{"code": "DEDE", "flagURL": "http://upload.wikimedia.org/wikipedia/en/b/ba/Flag_of_Germany.svg", "name": "West Germany", "wikipediaURL": "http://en.wikipedia.org/wiki/West_Germany"},
{"code": "YE", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/8/89/Flag_of_Yemen.svg", "name": "Yemen", "wikipediaURL": "http://en.wikipedia.org/wiki/Yemen"},
{"code": "YUCS", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/7/71/Flag_of_SFR_Yugoslavia.svg", "name": "Yugoslavia", "wikipediaURL": "http://en.wikipedia.org/wiki/Yugoslavia"},
{"code": "ZRCD", "flagURL": "http://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Zaire.svg", "name": "Zaire", "wikipediaURL": "http://en.wikipedia.org/wiki/Zaire"},

BIN
tools/geo/png/circle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -297,10 +297,10 @@ geo = {
'Sint Maarten': ['Sint Maarten, Netherlands Antilles'],
'South Ossetia': ['Shida Kartli'],
# see http://en.wikipedia.org/wiki/Sudan#States_and_regions
'South Sudan': [
'Central Equatoria, Sudan', 'Eastern Equatoria, Sudan', 'Jonglei, Sudan', 'Lakes, Sudan', 'Northern Bahr el Ghazal, Sudan',
'Upper Nile, Sudan', 'Unity, Sudan', 'Warrap, Sudan', 'Western Bahr el Ghazal, Sudan', 'Western Equatoria, Sudan'
],
# 'South Sudan': [
# 'Central Equatoria, Sudan', 'Eastern Equatoria, Sudan', 'Jonglei, Sudan', 'Lakes, Sudan', 'Northern Bahr el Ghazal, Sudan',
# 'Upper Nile, Sudan', 'Unity, Sudan', 'Warrap, Sudan', 'Western Bahr el Ghazal, Sudan', 'Western Equatoria, Sudan'
# ],
'South Yemen': ['Al-Mahrah, Yemen', 'Lahij, Yemen'],
'Soviet Union': [
'Armenia', 'Azerbaijan', 'Belarus', 'Estonia', 'Georgia, Europe',
@ -1102,7 +1102,7 @@ def get_countries():
def get_country_flag(code, url):
# max width on wikipedia
width = 2048
img = read_url(url)
img = read_url(url, cache=False)
png_file = '../png/flags/' + str(width) + '/' + code + '.png'
if url[-4:] == '.svg':
svg_file = '../svg/flags/' + code + '.svg'

View file

@ -340,7 +340,7 @@ def get_country_data(url):
def get_country_flag_url(code, url):
html = read_url(url)
results = re.compile('<div class="fullImageLink" id="file"><a href="(.*?)"', re.DOTALL).findall(html)
url = results[0]
url = 'http:' + results[0]
return url
def get_country_urls():