001] How to Create a DEM from Contour SHP Files in Global Mapper

Import digital topographic maps and generate a high-resolution 3D terrain grid using elevation attributes.

This session introduces the fundamental GIS workflow for landscape and urban analysis. You will learn how to import SHP files (even within ZIP archives), identify and map elevation attributes such as "CONT," and configure grid spacing settings to generate a professional Digital Elevation Model (DEM) for 3D visualization.

Download and Install Global Mapper Trial Version

First, you'll need to download the trial version.

Blue Marble Geographics website showing the Global Mapper Pro START FREE TRIAL button
img 1 : Blue Marble Geographics website showing the Global Mapper Pro "START FREE TRIAL" button

If you visit the Blue Marble Geographics website, you will see a menu for a "Start Free Trial." Please note that personal emails (Naver, Gmail, etc.) are generally not accepted; you must use an email associated with a company or an educational institution. Once your email is confirmed, download and install the software before proceeding with the content below.

As you follow along, try comparing the workflow with other GIS software. This is the "highlight" of using Global Mapper.

▲ Check out the step-by-step video tutorial for creating DEMs!

Importing Digital Topographic SHP Files

Now, let's begin creating a DEM.

One of the greatest advantages of Global Mapper is its ability to import an incredibly wide range of file formats.

Global Mapper File menu highlighting the Open Data File(s) option
img 2 : Global Mapper File menu highlighting the "Open Data File(s)..." option

Loading ZIP-Based SHP Files Directly

We will import a continuous digital topographic map in SHP format downloaded from the National Spatial Data Infrastructure portal. When downloaded, these maps are typically saved as a single ZIP file. Global Mapper is smart enough to load the data even if it is still compressed in a ZIP folder.

File explorer showing various ZIP files of digital maps being selected
img 3 : File explorer showing various ZIP files of digital maps being selected


The result of the import is as follows:

Global Mapper main screen showing imported contour lines and elevation points as separate layers
img 4 : Global Mapper main screen showing imported contour lines and elevation points as separate layers

Understanding Imported Contour and Elevation Layers


These are the contour line and elevation point data. In the Control Center, you can see the currently used data managed as layers.



Checking Elevation Attributes in Contour Data

To create a DEM, you need to know which attribute in the digital map contains the height values. Select the Digitizer Tool (the pencil icon) from the top menu and double-click on a contour line.

User selecting the Digitizer Tool and double-clicking a contour line on the map
img 5 : User selecting the Digitizer Tool and double-clicking a contour line on the map

Using the Digitizer Tool to Inspect Attributes

A "Feature Info" window will appear as shown below.

Modify Feature Info window showing various attributes like UFID, DIMI, and CONT
img 6 : "Modify Feature Info" window showing various attributes like UFID, DIVI, and CONT

The value belonging to the CONT attribute represents the elevation figure. Once you've confirmed that the contour layer uses "CONT" for elevation, close the window.

Now, select the layer in the Control Center, right-click, and select Options.

In the Control Center, right-click, and select Options.
img 7 : In the Control Center, right-click, and select Options.

Assigning the CONT Attribute as Elevation Data


In the options window that appears:
Vector Options dialog with the Elevations tab selected and CONT chosen for elevation values
img 8 : "Vector Options" dialog with the "Elevations" tab selected and "CONT" chosen for elevation values

Go to the Elevations tab and select "CONT" from the "Get Elevations From Attribute Value" list box, then click Apply. This tells Global Mapper to recognize the "CONT" value as the elevation data.



Creating a DEM Grid from Contour Lines

Now it's time to generate the DEM Grid. Right-click on the selected layer and choose Analysis -> Grid.

Opening the Grid Creation Tool

Right-click menu highlighting GRID - Create Elevation Grid from 3D Vector/Lidar Data...
img 9 : Right-click menu highlighting "GRID - Create Elevation Grid from 3D Vector/Lidar Data..."

Select the layers you want to use for the DEM and click OK. The Grid Creation Options window will appear.

Grid Creation Options window with Manually Specify the Grid Spacing to Use checked
img 10 : "Grid Creation Options" window with "Manually Specify the Grid Spacing to Use" checked

Setting Grid Spacing for DEM Generation

The grid spacing determines the horizontal resolution of your output DEM. While it varies depending on the site size, for a radius of about 1km, I typically set the Grid Spacing to Use to 5 meters.

Choosing the right spacing is a trade-off between detail and performance. A tighter grid spacing (e.g., 1 or 2 meters) will capture micro-topography and sharp ridge lines more accurately, which is crucial for detailed architectural site planning. However, for regional watershed analysis or vast coastal mapping, a larger grid spacing is highly recommended to prevent Global Mapper from consuming excessive system memory and slowing down rendering speeds.

Defining DEM Grid Bounds

Next, switch to the Grid Bounds tab to restrict the analysis area. By default, Global Mapper will attempt to process the entire bounding box of all loaded data.

If you select All Loaded Data, the software will convert every single contour line available into the grid. However, to save processing time and keep your workspace clean, using the Draw a Box option is highly efficient. This tool allows you to visually click and drag a temporary bounding box directly over your target project site, ignoring unnecessary peripheral terrain data and instantly flattening the processing queue.

Grid Bounds tab showing All Loaded Data and Draw a Box options
img 11 : "Grid Bounds" tab showing "All Loaded Data" and "Draw a Box" options

Here you can set the area for the DEM generation. All Loaded Data is used to convert the entire selected layer into a DEM. By choosing Draw a Box, you can select only a specific rectangular area.

Drag a Box to Select Export Bounds window with a yellow rectangle drawn over the map data
img 12 : "Drag a Box to Select Export Bounds" window with a yellow rectangle drawn over the map data

Click and drag the mouse to define the appropriate area, then click OK. The selected area will now be indicated on the main screen.

Main screen showing the selected bounding box area next to the Grid options window
img 13 : Main screen showing the selected bounding box area next to the Grid options window

Click OK to proceed. The DEM is now created!

Main map screen showing the generated grayscale DEM grid
img 14 : Main map screen showing the generated grayscale DEM grid

Viewing the DEM in 3D

Let's check the result in 3D. Click the cube icon with "3D" on it in the top menu.
3D Viewer window showing a fully rendered 3D terrain model of the imported data
img 15 : "3D Viewer" window showing a fully rendered 3D terrain model of the imported data

A 3D screen that you can rotate and inspect will appear. The process is complete!

Final Thoughts on DEM Creation in Global Mapper

I've only explained the very basics for now, despite the many options and functions available for DEM generation. I will explain the details as needed as we move forward with the lectures.


That's all for today~


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