Wolfram 语言

核心语言

地理位置网格

全新函数 CoordinateBoundsArrayCoordinateBoundingBoxArray 可用于创建有特定步长值的多维数组.

计算美国的经纬度边界.

In[1]:=
Click for copyable input
{lat, lon} = GeoBounds[Entity["Country", "UnitedStates"]]
Out[1]=

从其中生成步长为 2 度的坐标数组.

In[2]:=
Click for copyable input
arr = CoordinateBoundsArray[QuantityMagnitude@{lon, lat}, 2];

根据数组构建地理表格.

In[3]:=
Click for copyable input
grid = GeoGridPosition[arr, "Equirectangular"];
In[4]:=
Click for copyable input
pos = GeoPosition[grid]
Out[4]=

在地理地图上绘制这些坐标.

In[5]:=
Click for copyable input
graphics = GeoGraphics[Point[pos], GeoGridLines -> Automatic]
Out[5]=

在其他投影上绘制这些点.

In[6]:=
Click for copyable input
Show[graphics, GeoProjection -> "Mollweide"]
Out[6]=
In[7]:=
Click for copyable input
Show[graphics, GeoProjection -> "Mercator"]
Out[7]=

相关范例

de en es fr ja ko pt-br ru