Wolfram Language

Geo Data

"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
africa = EntityValue[Entity["GeographicRegion", "Africa"], EntityProperty["GeographicRegion", "Polygon"]]
Out[1]=
In[2]:=
Click for copyable input
GeoGraphics[{EdgeForm[White], FaceForm[Red], africa}, GeoBackground -> "Satellite"]
Out[2]=

It is also possible to obtain the polygons of all countries in Africa.

In[3]:=
Click for copyable input
africacountries = EntityValue[Entity["GeographicRegion", "Africa"], EntityProperty["GeographicRegion", "PolygonCountryBoundaries"]];
In[4]:=
Click for copyable input
GeoGraphics[{EdgeForm[White], FaceForm[Red], africacountries}, GeoBackground -> "Satellite"]
Out[4]=

Related Examples

de es fr ja ko pt-br ru zh