「GeographicRegion」多角形
新しい地理実体領域"GeographicRegion"で,大陸全体や他の種類の地理実体を表すことができる.
地理領域実体としてのアフリカは,大陸全体を表す.
In[1]:=
![Click for copyable input](assets.ja/geographicregion-polygons/In_20.png)
africa = EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "Polygon"]]
Out[1]=
![](assets.ja/geographicregion-polygons/O_19.png)
In[2]:=
![Click for copyable input](assets.ja/geographicregion-polygons/In_21.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africa},
GeoBackground -> "Satellite"]
Out[2]=
![](assets.ja/geographicregion-polygons/O_20.png)
アフリカのすべての国のポリゴンを得ることも可能である。
In[3]:=
![Click for copyable input](assets.ja/geographicregion-polygons/In_22.png)
africacountries =
EntityValue[Entity["GeographicRegion", "Africa"],
EntityProperty["GeographicRegion", "PolygonCountryBoundaries"]];
In[4]:=
![Click for copyable input](assets.ja/geographicregion-polygons/In_23.png)
GeoGraphics[{EdgeForm[White], FaceForm[Red], africacountries},
GeoBackground -> "Satellite"]
Out[4]=
![](assets.ja/geographicregion-polygons/O_21.png)