User:The Anome/country bounding boxes

A first hack, based on all places in the NGA GNS dataset, not (yet) properly handling latitude wrap-round at &plusmn;180&deg;. Country names are mapped from FIPS country codes.

This works pretty well for all countries that do not cross the 180&deg; meridian. Russia is a notable exception. This dataset does not include the United States.

country       longmin   latmin  longmax   latmax AA            -70.983   12.400  -69.850   12.617 Antigua_and_  -62.417   16.817  -61.650   17.750 United_Arab_   45.000   22.167   59.250   26.133 Afghanistan    60.433   29.150   75.033   38.484 Algeria        -8.700   18.027   70.554   37.203 Azerbaijan     44.783   38.417   50.858   41.911 Albania        19.000   39.583   21.050   42.659 Armenia        43.443   38.857   46.589   41.300 Andorra         1.417   42.433    1.783   42.650 Angola         10.000  -33.806   24.350   -3.033 Argentina     -73.533  -58.583  -53.367  -21.783 Australia     112.467  -55.050  168.000   -9.133 AT            122.983  -12.667  124.050  -12.000 Austria         1.200   46.373   19.000   49.017 AV            -63.667   18.150  -62.917   18.600 Bahrain        45.000   25.000   50.954   26.566 Barbados      -59.667   12.967  -59.383   13.333 Botswana       20.000  -28.517   29.350   24.583 BD            -64.908   32.233  -64.617   32.417 Belgium         2.367   49.500    6.400   51.683 Bahamas       -86.000   20.000  -70.000   29.547 Bangladesh     84.000   20.600   92.683   26.817 Belize        -89.950   15.000  -75.000   18.483 Bosnia_and_H   15.746   42.558   19.671   45.268 Bolivia       -69.650  -26.867  -57.550    9.678 Burma          91.833    6.000  102.000   28.350 Benin          -4.000    5.000   92.219   21.322 Belarus        22.550   50.717   32.850   56.133 Solomon_Isla -130.000  -45.000  170.200    3.751    WRAPPED Brazil        -73.817  -33.733  -28.850   16.800 BS             39.700  -21.417   39.700  -21.417 Bhutan         80.000   26.217   92.717   30.000 Bulgaria       22.371   41.000   28.600   44.215 BV              3.278  -54.467    3.483  -54.386 Brunei        110.000   -2.000  120.000   15.000 Burundi        29.018   -4.455   31.783   -0.950 Canada       -163.900   39.000  -52.083   83.133 Cambodia       14.869    9.917  107.567   17.483 Chad            2.000    7.483   27.133   26.000 Sri_Lanka      75.000    5.900   81.917   10.083 Republic_of_   10.000   -6.067   20.000    5.000 Democratic_R   12.200  -15.750   31.233    5.350 China          74.167   18.163  135.078   53.500 Chile        -109.467  -64.050   -8.847   42.583 CJ            -81.417   19.250  -79.717   19.833 CK             96.817  -12.208   96.925  -11.817 Cameroon        8.467    1.417   20.000   16.000 Comoros        43.067  -13.000   45.317  -11.350 Colombia      -81.850   -5.000   76.833   15.000 CR            146.633  -29.942  159.119  -13.750 Costa_Rica    -87.100   -0.792  -46.633   15.000 Central_Afri   13.400    0.000   27.450   10.983 Cuba          -90.000   15.000   83.917   25.000 Cape_Verde    -25.367   14.800  -22.650   17.200 CW           -172.083  -21.953  163.181   10.412    WRAPPED Cyprus         32.271   34.567   34.600   35.700 Denmark         4.517   53.583   18.000   64.000 Djibouti       39.500   10.267   43.452   19.000 Dominica      -61.550   15.167  -61.250   15.633 Dominican_Re  -86.000   15.000   70.500   21.000 Ecuador       -92.000   -4.967  -75.200    1.650 Egypt          13.000    5.000   37.000   50.861 Ireland       -10.683   51.367   -4.000   55.433 Equatorial_G    3.633   -1.483   11.400    5.000 Estonia        21.781   57.521   28.883   59.983 Eritrea        20.000    0.000   43.417   18.033 El_Salvador   -90.184   13.150  -87.644   14.450 Ethiopia       33.017    3.233   47.783   19.000 EU             40.367  -22.333   40.367  -22.333 Czech_Republ   12.117   39.983   38.083   59.650 FG            -60.000    2.167  -51.633    5.783 Finland        18.000    0.000   60.203   70.083 Fiji         -179.983  -45.000  180.000  -11.167    WRAPPED FK            -61.433  -52.967  -57.667  -50.967 Federated_St  137.359    1.026  163.037   10.094 FO             -7.800   61.333   -5.333   67.283 FP           -179.800  -27.917  180.000   16.633    WRAPPED France         -5.225   41.333    9.550   51.200 FS             50.217  -50.017   77.600  -37.783 Gambia        -16.817    5.000   20.000   13.817 Gabon           8.700   -3.950   14.533    5.983 Georgia        40.009   41.150   46.659   43.582 Ghana          -4.000    4.733   20.000   11.167 GI             -5.433   36.100   -5.333   36.183 Grenada       -61.800   11.983  -61.250   12.667 GK             -2.700   48.683   -2.083   49.733 GL            -73.050   51.700  -12.133   83.667 Germany         5.867   45.967   15.033   55.133 GO             47.300  -11.567   47.367  -11.500 GP            -86.000   13.000  -60.900   21.000 Greece         19.382   34.800   29.667   44.000 Guatemala     -92.583   13.749  -75.000   17.817 Guinea        -15.417    4.367   20.000   13.300 Guyana        -61.283    1.250  -56.000    8.433 GZ             34.217   31.217   34.550   31.583 Haiti         -86.000    8.547   72.296   21.000 HK            113.833   15.000  115.000   22.600 HM             72.567  -53.200   73.850  -52.900 Honduras      -89.967   13.000  -75.000   17.450 Croatia        13.484   42.367   19.391   46.527 Hungary        16.133   45.750   22.867   48.983 Iceland       -26.000   62.000   -6.000   67.117 Indonesia       0.000  -11.983  141.033   15.000 IM             -5.450   53.150   -4.083   54.450 India          65.000    6.000   97.350   35.956 IO             70.250   -7.417   72.600   -4.917 IP           -109.217   10.283 -109.217   10.283 Iran           27.445    5.322   96.024   39.933 Israel         34.282   29.000   35.667   33.286 Italy           1.133   28.969   54.824   49.200 Côte_d'Ivoi   -9.650    1.083   45.608   35.538 Iraq           38.782   28.833   49.433   37.358 Japan         122.933   20.417  156.067   50.617 JE             -2.328   49.100   -1.897   49.316 Jamaica       -78.667   15.000  -70.000   18.533 JN            -13.000   62.000   -6.000   71.183 Jordan         34.783   29.000   39.100   33.333 JU             42.750  -17.050   42.750  -17.050 Kenya          24.283   -5.083   41.878    4.883 Kyrgyzstan     69.333   39.183   80.116   43.833 North_Korea   124.128   37.621  130.672   43.004 Kiribati     -179.217  -45.000  180.000   30.000    WRAPPED South_Korea   124.612   29.000  131.867   38.600 KT             55.450  -10.567  105.750   -4.600 Kuwait         45.000   25.000   49.411   30.083 Kazakhstan     46.583   40.417   90.000   55.428 Laos          100.083   13.933  107.683   22.500 Lebanon        35.104   33.067   36.623   34.691 Latvia         20.967   55.667   28.233   58.067 Lithuania      20.991   53.000   28.233   56.467 Liberia       -11.598    4.328   -4.000    9.500 Slovakia       16.967   45.500   26.500   49.850 Liechtenstei    9.500   47.050    9.750   47.250 Lesotho        24.000  -30.667   29.483  -28.567 Luxembourg      5.743   49.450    6.517   50.182 Libya           5.000   20.250   25.500   33.150 Madagascar     42.400  -25.900   50.483  -11.950 MB            -72.342   14.150  -60.800   19.808 MC            113.531   15.000  115.000   22.216 Moldova        26.672   45.482   30.096   48.467 MF             45.009  -13.006   45.295  -12.640 Mongolia       87.783   41.550  119.917   52.100 MH            -62.233   16.667  -62.150   16.817 Malawi         32.717  -17.150   37.000   -5.000 Montenegro     18.438   41.864   20.345   43.548 Macedonia      20.405   40.867   23.033   42.373 Mali          -13.750    4.318   20.000   26.000 Monaco          7.400   43.717    7.439   43.746 Morocco       -13.100    3.360    9.542   36.610 Mauritius      56.567  -20.522   73.567   10.400 Mauritania    -17.117   10.000   20.000   27.117 Malta          14.184   35.782   15.000   36.333 Oman            5.100   15.083   65.000   26.567 Maldives       61.500  -10.500   75.000   20.000 Mexico       -119.922    0.000  110.750   45.000    WRAPPED Malaysia       98.933    0.000  124.125   15.000 Mozambique      4.017  -26.867   43.000   15.033 NC            125.467  -45.000  180.000    0.000 NE           -169.950  -19.117 -169.783  -18.933 NF            167.950  -29.050  167.950  -29.033 Niger           0.183    1.617   20.000   26.000 Vanuatu      -130.000  -45.000  180.000    0.000    WRAPPED Nigeria         2.483    3.883   20.000   13.867 Netherlands     3.133   50.750    7.217   53.683 NM             34.967   31.750   35.233   31.917 Norway          2.553   56.150   31.833   71.500 Nepal          80.000   25.767   88.183   30.450 Nauru         166.917   -0.550  166.950   -0.500 Suriname      -60.000    2.000  -53.967    6.017 NT            -86.000   12.000  -62.883   21.000 Nicaragua     -87.700    0.000    0.000   15.000 New_Zealand  -179.000  -52.617  179.067   36.783    WRAPPED OS           -175.000  -75.000  174.500   85.000    WRAPPED Paraguay      -62.633  -27.550  -54.267  -19.317 PC           -130.733  -25.083 -124.783  -23.917 Peru          -81.458  -18.357   74.350   11.371 PF            104.883    0.467  120.317   20.950 PG            111.833    5.000  118.750   16.967 Pakistan       17.899   23.733   77.800   43.713 Poland        -21.583   45.500   26.500   55.183 Panama        -83.650    7.200   -8.433   15.000 Portugal      -73.150    8.496    8.683   42.150 Papua_New_Gu  101.275  -12.583  160.500   17.797 Palau         131.175    2.874  134.716    8.342 Guinea-Bissa  -16.700    5.000   -4.000   12.800 Qatar          50.644   24.285   52.750   26.441 Serbia         18.859   41.844   22.967   46.167 RE             55.217  -21.383   57.000  -20.000 Marshall_Isl  155.000    4.567  175.833   70.150 Romania        19.000   43.517   29.967   48.250 Philippines    63.295    4.444  130.500   34.434 Russia       -179.985   38.083  179.917   86.217    WRAPPED Rwanda         28.867   -3.317   37.000    5.000 Saudi_Arabia   24.080    5.000   55.500   48.555 SB            -56.517   46.721  -56.033   47.140 Saint_Kitts_  -62.850   17.083  -62.517   17.417 Seychelles     20.462  -10.217   57.083   42.641 South_Africa   16.450  -35.500   33.533  -22.133 Senegal       -17.683   12.267  -11.357   16.681 SH            -14.417  -40.400   -5.633   -7.900 Slovenia       13.427   44.083   17.467   46.933 Sierra_Leone  -13.417    5.000   -4.000   10.000 San_Marino     12.417   43.908   12.500   43.983 Singapore     101.333    1.083  104.412    4.000 Somalia        20.000   -1.659   65.000   20.000 Spain         -18.167   27.633    6.033   44.000 Saint_Lucia   -61.083   13.500  -60.867   14.150 Sudan          18.783    3.517   38.833   27.167 SV              6.000   62.000   38.000   81.500 Sweden          1.300   16.693   60.717   69.033 SX            -40.000  -59.467  -26.250  -53.959 Syria          35.599   32.000   42.500   37.280 Switzerland     5.967   45.150   12.467   52.883 Trinidad_and  -86.000   10.000  -60.500   21.000 TE             54.417  -15.867   54.417  -15.867 Thailand       95.000    4.150  139.183   20.445 Tajikistan     67.417   36.717   75.000   40.933 TK            -72.483   20.750  -70.250   24.717 TL           -172.517  -10.000 -150.000   -8.533 Tonga        -179.117  -45.000  180.000    0.000    WRAPPED Togo           -4.000    5.000   20.000   11.133 Sao_Tome_and    6.467   -0.017    7.633    1.733 Tunisia         4.000   23.717   13.000   37.667 East_Timor    124.069   -9.474  127.606   -7.557 Turkey         25.000   35.819   44.850   42.100 Tuvalu        176.100  -10.750  179.883   -5.650 Taiwan        118.115   21.000  125.000   29.000 Turkmenistan   52.117   35.212   66.650   42.633 Tanzania       29.583  -11.733   40.450    5.000 UF           -179.983  -78.000  180.000   89.000    WRAPPED Uganda         29.467   -1.483   34.967    4.550 United_Kingd  -13.683   48.500    3.858   64.067 Ukraine        18.850   37.800   76.100   64.950 United_State  167.740    8.732  167.740    8.732 Burkina_Faso   -5.483    9.400   20.000   14.983 Uruguay       -58.500  -35.783  -51.283  -30.117 Uzbekistan     44.517   35.267   92.200   66.150 Saint_Vincen  -61.467   12.533  -61.000   13.500 Venezuela     -76.434   -0.877   69.211   19.199 VI            -64.867   18.000  -64.200   18.767 Vietnam        17.667    8.383  115.000   23.667 Holy_See       12.350   41.900   12.450   42.467 Namibia        11.750  -32.000   36.283  -16.983 WE             34.083   29.850   37.967   32.617 WF           -179.717  -14.417 -174.417  -10.250 WI            -17.117   20.800   -8.633   27.983 Samoa        -172.867  -14.050 -171.000  -13.417 Swaziland      30.350  -27.417   32.333  -25.750 YI             19.223   42.556   20.750   43.750 Yemen          39.500   12.100   65.000   27.695 Zambia          2.983  -18.050   39.283    5.000 Zimbabwe       18.000  -32.000   33.800  -13.633