About Us Customers

 uniDEM

Tutorials
User Manual

Creation of Digital Terrain Model (DTM)

This tutorial describes how to create a Digital Terrain Model (DTM) from a LIDAR point based Digital Surface Model (DSM) at a resolution of 1 meter. This includes water editing and first surface features removal (vegetation, building, bridges) in accordance with the USGS 1-Meter Digital Elevation Model Specification.

Prior to commencing a project perform the following steps.

Review the Water Flattening tutorial to learn how to enforce hydrology in a DSM.

1. Load and Inputs and Flatten Ocean

The DSM covers downtown Boston.

  1. Load bostonDSM-1m.tif from the in the unzipped sample data: Go to uniDEM Logo → Load DEM
  2. Load boston1m-Image.tif from the in the unzipped sample data: Go to uniDEM Logo → Load Image
  3. Create two new windows and show the DEM in one and the imagery in the other

Help references:

Load DEM | Data Management | Table of Contents

2. Create a Copy of the DEM Data

A copy of the Active DEM (bostonDSM-1m.tif) should be made for comparison later in the editing process because changes within uniDEM are saved to the Active Dataset which is bostonDSM-1m in this case.

  1. Right click DEM under bostonDSM-1m in the Table of Contents and select Export
  2. Enter a filename (such as bostonDSM-1m Copy.tif) for the copied DEM (bostonDSM-1m Original.tif)
  3. Load bostonDSM-1m Copy.tif

Note: The DEM (DEM) in the bostonDSM-1m dataset listed in the Table of Contents is bold. This means this is the Active Dataset. The Active Dataset is the DEM that will be edited.

export

Help references:

Table of Contents

3. Classify Water and Flatten Water

Water identification and flattening is required to ensure consistent elevations and to fill missing data from the collection process as required by the DEM specification.
The Classification Mask is created to align spatially with the DSM being edited the first time a mask value is assigned.

  1. Classify and flatten the ocean, following the Water Flattening tutorial
  2. flattened ocean

    Help references:

    Flood Fill | Clean Up | Select Values | Set To | Lock | Polygon

4. Classify and Create DTM

Now that the water has been edited it is time to separate ground features from everything else including trees and buildings. Separation of Bare Ground from other features is readily achieved with a high resolution DSM created from LIDAR as the noise levels are very low and the samples are collected largely from a top down (Nadir) view.

Flood Fill on DEM
  1. Press F to enable the Flood Fill tool (or: Go to Home, panel Tools and select Flood Fill Tool)
  2. In the Edit tab and Flood Fill Options panel, set the follwing parameters:
    • Type: DEM (CLASS layer will be used for the filling)
    • Mode: Differential (+/-)
    • Tolerance: 0.25 m
    • Max. Radius: 1000.00 m
    • All other parameters can be used as they are.
  3. Select areas: Press Shift+Left-Click on areas of bare ground
    • Zoom out and observe that all pixels connected to a neighbour within 0.25 m are selected
    • Zoom in and pan around to add disconnected regions of bare ground. In this case tunnels and building courtyards require addition
  4. Use the polygon tool (Press P) to deselect connected areas that are not ground such as parking structures
  5. When complete:
    • In the Edit tab and the Selection panel, and click Erode; Number of pixels to erode: 1
  6. Assign the selection to the Class Mask:
    • In the Classification tab, click 1: Bare Ground (12)
  7. In the Edit tab and Selection panel, click Invert
  8. Assign the selection to the Class Mask:
    • In the Classification tab, click 6: Building (64)
  9. Disable the colorized shader to review the classification: Press H
  10. Select and classify any additional bare ground identified
  11. Press Esc to clear the selection
differential flood fill
Void and Infill Buildings to Create Bare Earth
  1. Select all non-bare pixels in the mask:
    • In the Edit tab and Selection panel, click Select Values and set the following parameters:
      • Select data set: bostonDSM-1m
      • Select data: Class
      • Select Class(es): Building (64)
  2. In the Edit tab and Arithmetic panel, click Make Void
  3. In the Edit tab and Void Fill panel, click Triangulation and set the following parameters:
    • Triangle size (pixel): 10
    • Smoothing amount: 1
    • Add triangulation points inside voids? Add interpolated points inside void
    • The percentage complete will be displayed on the bottom left
  4. Review and correct as necessary
  5. Show the original copied DSM in the right window to compare before and after
  6. Set the view level to 0 to force maximum viewing resolution
boston dtm

Help references:

Flood Fill | Erode | Invert | Select Values | Make Void | Triangulation | Polygon