GeoElevationData

GeoElevationData[]
gives the elevation at $GeoLocation.

GeoElevationData[loc]
gives the elevation at the geographic location loc.

GeoElevationData[{loc1,loc2}]
gives an array of elevation values within the bounding box given by .

GeoElevationData[GeoPosition[{{lat1,lon1},{lat2,lon2},}]]
gives the list of elevations at the positions .

Details and OptionsDetails and Options

  • GeoElevationData returns orthometric height, namely the elevation with respect to the geoid (mean sea level).
  • The location loc can be specified either as latitude and longitude coordinates , GeoPosition[], or as a named entity Entity[].
  • For a specific location, GeoElevationData returns a Quantity corresponding to the closest point in the underlying elevation data set.
  • For a region, GeoElevationData returns a Quantity containing an array of elevation values. Successive rows of the array correspond to decreasing latitude and successive columns correspond to increasing longitude. The Quantity has a unit that may be specified using UnitSystem and is returned with ThreadDepth->0.
  • GeoElevationData[Entity[]] returns an array of values irrespectively of whether the entity is "extended" or not.
  • The spatial resolution of an elevation array is dependent on available data.
  • The following options can be given to GeoElevationData:
  • GeoZoomLevelAutomaticlevel of resolution of the elevation array
    UnitSystem$UnitSystemunit system in which to return elevations
  • The following settings for UnitSystem can be used:
  • "Imperial"return results in imperial units
    "Metric"return results in metric units
  • The spatial resolution of the requested elevation data can be selected subject to availability with GeoZoomLevel, where GeoZoomLevel is an integer from 1 to 18 inclusive.

ExamplesExamplesopen allclose all

Basic Examples  (6)Basic Examples  (6)

Get the elevation at the current $GeoLocation:

In[1]:=
Click for copyable input
Out[1]=

View the underlying expression:

In[2]:=
Click for copyable input
Out[2]//InputForm=

Explicitly request metric units:

In[3]:=
Click for copyable input
Out[3]=

View the underlying expression:

In[4]:=
Click for copyable input
Out[4]//InputForm=

Get the ocean depth at the International Date Line on the Equator:

In[1]:=
Click for copyable input
Out[1]=

Use GeoPosition to unambiguously identify the coordinates as a latitude/longitude pair:

In[2]:=
Click for copyable input
Out[2]=

Plot the elevation around Denver, Colorado using ReliefPlot:

In[1]:=
Click for copyable input
Out[1]=

Plot using ArrayPlot:

In[2]:=
Click for copyable input
Out[2]=

Show the elevation of Mt. Everest as an entity:

In[1]:=
Click for copyable input
Out[1]=

The elevation of an entity is returned as an array (corresponding to an interpolation of elevations around the canonical entity position):

In[2]:=
Click for copyable input
Out[2]//InputForm=

Return the height as a simple Quantity:

In[3]:=
Click for copyable input
Out[3]=

Return the height as a simple Quantity another way:

In[4]:=
Click for copyable input
Out[4]=

Elevation along the equator at 1° intervals of longitude:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Draw the area around Mt. Everest:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)