Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a 3D mesh region for geographic locations with accurate elevation data
ResourceFunction["GeoElevationRegion"][loc] returns a 3D mesh region representing loc with accurate elevation data. |
"BaseElevation" | Automatic | base elevation |
GeoModel | Automatic | model of the Earth (or other body) to use |
GeoZoomLevel | Automatic | level of resolution of the elevation array |
"ProjectedRegion" | True | projected region |
"RegionType" | Automatic | region type |
"ScaleFactor" | Automatic | scale factor to use for vertical exaggeration |
"RegionType" can take any of the following values:
Automatic | automatically determine the region type |
"BoundaryMeshRegion" | create a boundary mesh region |
"FullBoundaryMeshRegion" | create a full boundary mesh region |
"FullMeshRegion" | create a full mesh region |
"MeshRegion" | create a mesh region |
"Earth" | max zoom 12 |
"Mars" | max zoom 7 |
"Mercury" | max zoom 6 |
"Moon" | max zoom 8 |
"Pluto" | max zoom 5 |
Create a mesh region for Mount Everest:
In[1]:= | ![]() |
Out[1]= | ![]() |
Create a mesh region for a set of disks around a set of positions:
In[2]:= | ![]() |
Out[2]= | ![]() |
Create a mesh region for Hawaii:
In[3]:= | ![]() |
Out[3]= | ![]() |
Create a mesh region for the United States:
In[4]:= | ![]() |
Out[4]= | ![]() |
Create a mesh for Hawaii,clipped at the polygon edge:
In[5]:= | ![]() |
In[6]:= | ![]() |
Out[6]= | ![]() |
Create a mesh for Hawaii, but extend the data out to 200 miles, including bathymetry data:
In[7]:= | ![]() |
Out[7]= | ![]() |
Elevations below sea level can be removed using ProjectedRegion and BaseElevation:
In[8]:= | ![]() |
Out[8]= | ![]() |
"BaseElevation" can be used together with "ProjectedRegion"→False to ignore elevations below a specified threshold:
In[9]:= | ![]() |
Out[9]= | ![]() |
In[10]:= | ![]() |
Out[10]= | ![]() |
Specify regions for other geomodels:
In[11]:= | ![]() |
Out[11]= | ![]() |
Generate meshes with different resolutions:
In[12]:= | ![]() |
Out[12]= | ![]() |
In[13]:= | ![]() |
Out[13]= | ![]() |
In[14]:= | ![]() |
Out[14]= | ![]() |
By default, regions are projected onto a flat surface:
In[15]:= | ![]() |
Out[15]= | ![]() |
To maintain a spherical surface, "ProjectedRegion" can be set to False:
In[16]:= | ![]() |
Out[16]= | ![]() |
Different types of regions can be constructed:
In[17]:= | ![]() |
Out[17]= | ![]() |
In[18]:= | ![]() |
Out[18]= | ![]() |
In[19]:= | ![]() |
Out[19]= | ![]() |
In[20]:= | ![]() |
Out[20]= | ![]() |
Specify vertical exaggeration:
In[21]:= | ![]() |
Out[21]= | ![]() |
In[22]:= | ![]() |
Out[22]= | ![]() |
In[23]:= | ![]() |
Out[23]= | ![]() |
In[24]:= | ![]() |
Out[24]= | ![]() |
GeoElevationRegion is similar to GeoElevationGraphics3D, but there are differences.
In[25]:= | ![]() |
Out[25]= | ![]() |
In[26]:= | ![]() |
Out[26]= | ![]() |
In[27]:= | ![]() |
Out[27]= | ![]() |
In[28]:= | ![]() |
Out[28]= | ![]() |
In addition, GeoElevationGraphics3D always generates elevations from a flat surface, but GeoElevationRegion allows the data to be with respect to a spherical Earth
The number of polygons for the entire world is large for the smallest GeoZoomLevel:
In[29]:= | ![]() |
Out[29]= | ![]() |
In[30]:= | ![]() |
In[31]:= | ![]() |
In[32]:= | ![]() |
Out[32]= | ![]() |
Wolfram Language 14.0 (January 2024) or above
This work is licensed under a Creative Commons Attribution 4.0 International License