"GeographicRegion" Polygons
A new geo entity domain, "GeographicRegion", can describe whole continents and other types of geographic entities.
Africa as a geographic region entity represents the whole continent.
In[1]:=
![Click for copyable input](assets.en/geographicregion-polygons/In_20.png)
africa = EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "Polygon"]]
Out[1]=
![](assets.en/geographicregion-polygons/O_19.png)
In[2]:=
![Click for copyable input](assets.en/geographicregion-polygons/In_21.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africa},
GeoBackground -> "Satellite"]
Out[2]=
![](assets.en/geographicregion-polygons/O_20.png)
It is also possible to obtain the polygons of all countries in Africa.
In[3]:=
![Click for copyable input](assets.en/geographicregion-polygons/In_22.png)
africacountries =
EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "PolygonCountryBoundaries"]];
In[4]:=
![Click for copyable input](assets.en/geographicregion-polygons/In_23.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africacountries},
GeoBackground -> "Satellite"]
Out[4]=
![](assets.en/geographicregion-polygons/O_21.png)