Which Country Has This Bounding Box?
Draw latitude-longitude rectangles around 10 countries chosen randomly. How many can you recognize without seeing their actual shapes?
Take the list of all countries.
In[1]:=
![Click for copyable input](assets.en/which-country-has-this-bounding-box/In_25.png)
Length[countries = EntityList[EntityClass["Country", All]]]
Out[1]=
![](assets.en/which-country-has-this-bounding-box/O_16.png)
Choose 10 of them randomly but do not show their names!
In[2]:=
![Click for copyable input](assets.en/which-country-has-this-bounding-box/In_26.png)
sample10 = RandomSample[countries, 10];
Which countries have these geo bounding boxes?
In[3]:=
![Click for copyable input](assets.en/which-country-has-this-bounding-box/In_27.png)
GeoGraphics[{EdgeForm[Red], GeoBoundsRegion /@ sample10},
GeoBackground -> "StreetMapNoLabels", GeoRange -> "World"]
Out[3]=
![](assets.en/which-country-has-this-bounding-box/O_17.png)
Click here to see how many you recognized.
show complete Wolfram Language input