지리적 위치의 그리드
새로운 함수 CoordinateBoundsArray와 CoordinateBoundingBoxArray를 사용하여 특정 간격 수치 값의 다차원 배열을 생성할 수 있습니다.
미국 경위도의 경계를 계산합니다.
In[1]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_13.png)
{lat, lon} = GeoBounds[Entity["Country", "UnitedStates"]]
Out[1]=
![](assets.ko/grid-of-geographical-locations/O_12.png)
여기서 간격 폭 2도의 좌표의 배열을 생성합니다.
In[2]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_14.png)
arr = CoordinateBoundsArray[QuantityMagnitude@{lon, lat}, 2];
배열에서 지리적 격자를 작성합니다.
In[3]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_15.png)
grid = GeoGridPosition[arr, "Equirectangular"];
In[4]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_16.png)
pos = GeoPosition[grid]
Out[4]=
![](assets.ko/grid-of-geographical-locations/O_13.png)
지도에 좌표를 플롯합니다.
In[5]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_17.png)
GeoGraphics[Point[pos], GeoGridLines -> Automatic]
Out[5]=
![](assets.ko/grid-of-geographical-locations/O_14.png)
다른 투영법의 점을 플롯합니다.
In[6]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_18.png)
GeoGraphics[Point[pos], GeoGridLines -> Automatic];
Show[%, GeoProjection -> "Mollweide"]
Out[6]=
![](assets.ko/grid-of-geographical-locations/O_15.png)
In[7]:=
![Click for copyable input](assets.ko/grid-of-geographical-locations/In_19.png)
{lat, lon} = GeoBounds[Entity["Country", "UnitedStates"]];
Show[%, GeoProjection -> "Mollweide"];
Show[%, GeoProjection -> "Mercator"]
Out[7]=
![](assets.ko/grid-of-geographical-locations/O_16.png)