003] How to Create DEMs and Perform Terrain Analysis in Global Mapper

Transform raw contour data into actionable Digital Elevation Models and perform detailed statistical terrain analysis.

This tutorial covers the complete workflow for GIS professionals using Global Mapper, from importing topographic maps and generating DEMs to performing raster reclassification for area-based statistics and slope analysis.

Today, we will learn how to create a DEM (Digital Elevation Model) and perform terrain analysis in Global Mapper using contour data. If you are accustomed to ESRI products or Q-GIS, you might find Global Mapper's output slightly different at first, but its intuitive workflow is incredibly powerful once you get used to it.

1. Importing Contour Data into Global Mapper

The first step in terrain analysis is generating a Digital Elevation Model (DEM) from contour data. You can use your own data or any standard digital topographic map files.

Download: Terrain_data.zip (Verified and safe file for download.)

Opening Digital Topographic Data

To begin, open your contour file in Global Mapper by navigating to File > Open Data File(s).

Global Mapper File Open menu screen
img 1 : Global Mapper File Open menu screen

Once the file is loaded, you will see the contour lines displayed on the screen. However, the default colors might not be very visible depending on your workspace settings.

Loaded contour lines on the main workspace
img 2 : Loaded contour lines on the main workspace

Adjusting Contour Line Styles for Better Visibility

To make the analysis easier, let's change the color of the contour lines. In the Control Center, select the contour layer, right-click, and choose Options.

Control Center layer options menu
img 3 : Control Center layer options menu

In the Vector Options window, go to the Line Styles tab and click on Select Style.

Vector Options - Line Styles tab
img 4 : Vector Options - Line Styles tab

From the Select Line Style window, click on Color, choose a highly visible color (like dark grey or black), and click OK to apply the changes.

Color picker and line style selection window
img 5 : Color picker and line style selection window
Applying the new line style settings
img 6 : Applying the new line style settings

Now the contour lines are much clearer and easier to work with.

Map view with updated contour line colors
img 7 : Map view with updated contour line colors

2. Generating the Elevation Grid (DEM)

Now that we have our vector data, we need to convert it into a grid (DEM). The most critical step here is assigning the elevation attribute.

Assigning Elevation Attributes

Right-click the layer in the Control Center > Options > Elevations. Select the attribute field that contains the elevation data (usually 'CONT') and click Apply.

Assigning elevation attribute from the CONT field
img 8 : Assigning elevation attribute from the CONT field

Generating the Elevation Grid (DEM)

Next, right-click the layer again, and navigate to Analysis > Create Elevation Grid.

Accessing the Create Elevation Grid menu
img 9 : Accessing the Create Elevation Grid menu

The Grid Creation Options window will appear. For basic analysis, you can simply click OK with the default settings.

Grid Creation Options window
img 10 : Grid Creation Options window

A DEM is now generated, showing the terrain as a black-and-white gradient by default.

Generated DEM in black and white gradient
img 11 : Generated DEM in black and white gradient

3. Adding an Elevation Legend to the DEM

To understand the elevation range, we should add a legend to the screen. Go to View > Workspace Layout Options > Elevation Legend.

Workspace Layout Options menu for Elevation Legend
img 12 : Workspace Layout Options menu for Elevation Legend

In the Configuration window, set it as follows:

Elevation Legend configuration settings
img 13 : Elevation Legend configuration settings
  • Unit: Select Metric (meters) for standard measurements.
  • Transparency: Set to Opaque (100%) for better visibility.
  • Legend Range: Choose Data Extents to show the full range of your terrain.

Now a legend appears on the left, showing that our terrain ranges from 65m to 135m.

DEM with the elevation legend displayed
img 14 : DEM with the elevation legend displayed

4. Applying Terrain Shaders and Color Ramps

While black-and-white is functional, most people prefer the standard topographic color scheme (red for high, blue for low). Global Mapper provides various pre-set Shaders.

Using the Atlas Shader

On the top toolbar, click the drop-down menu next to the mountain icon (Shader list) and select Atlas Shader.

Selection of Atlas Shader from the drop-down menu
img 15 : Selection of Atlas Shader from the drop-down menu

The map now displays a more familiar topographic color scheme.

DEM with Atlas Shader applied
img 16 : DEM with Atlas Shader applied

5. Raster Reclassification and Elevation Statistics

If you need to know the exact area occupied by specific elevation ranges, use Raster Reclassification. Navigate to Raster Analysis > Raster Reclassification.

Raster Analysis - Raster Reclassification menu
img 17 : Raster Analysis - Raster Reclassification menu

Analyzing Elevation Distribution with Bins

In the reclassification window, you can set the Number of Bins (how many levels to divide the data into) and see the area distribution in a bar graph.

Raster Reclassification setup and bar graph
img 18 : Raster Reclassification setup and bar graph

Exporting Terrain Statistics to CSV

By clicking Display in Graph Window, you can view the distribution in a larger window and save it as an image or export the data as a CSV file for use in Excel.

Enlarged elevation distribution graph
img 19 : Enlarged elevation distribution graph

6. Performing Slope and Aspect Analysis

Performing Slope (gradient) and Aspect (slope direction) analysis is just as simple. You only need to switch the Shader.

Selecting Slope Shader from the list
img 20 : Selecting Slope Shader from the list

Using the Slope Shader

Once you change the shader, the map updates instantly to show the slope distribution.

Slope analysis map output
img 21 : Slope analysis map output

Conclusion

Global Mapper makes terrain analysis intuitive and fast. Whether you are generating a DEM or conducting advanced slope studies, the key lies in understanding the Shader options and Raster Analysis tools. Give it a try with your own topographic data!

Continue Learning
Explore complete tutorial collections for CityEngine and Global Mapper.

Comments

Popular posts from this blog

029] How to Split Polygon Areas with Intersecting Lines in Global Mapper

[008] How to Understand CGA Rule Structure in CityEngine (Beginner Guide)

046] How to Create Parallel Offset Lines in Global Mapper