Polígonos con "GeographicRegion"
Un nuevo dominio de entidades geográficas, "GeographicRegion", puede describir continentes completos y otros tipos de entidades geográficas.
África como región geográfica representa el continente completo.
In[1]:=
![Click for copyable input](assets.es/geographicregion-polygons/In_20.png)
africa = EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "Polygon"]]
Out[1]=
![](assets.es/geographicregion-polygons/O_18.png)
In[2]:=
![Click for copyable input](assets.es/geographicregion-polygons/In_21.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africa},
GeoBackground -> "Satellite"]
Out[2]=
![](assets.es/geographicregion-polygons/O_19.png)
También es posible obtener los polígonos de todos los países en África.
In[3]:=
![Click for copyable input](assets.es/geographicregion-polygons/In_22.png)
africacountries =
EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "PolygonCountryBoundaries"]];
In[4]:=
![Click for copyable input](assets.es/geographicregion-polygons/In_23.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africacountries},
GeoBackground -> "Satellite"]
Out[4]=
![](assets.es/geographicregion-polygons/O_20.png)