Wolfram Language

Core Language

Grid of Geographical Locations

The new functions CoordinateBoundsArray and CoordinateBoundingBoxArray can be used to create multidimensional arrays of numerical values with specific steps.

Compute the bounds of latitudes and longitudes for the US.

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

Generate from them an array of coordinates with a step of 2 degrees.

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

Construct a geographical grid from the array.

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

Plot those coordinates on a geographical map.

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

Plot the points in other projections.

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

Related Examples

de es fr ja ko pt-br ru zh