How to calculate

a Digital Elevation Model

In ILWIS, you can obtain a Digital Elevation Model (DEM) by interpolation of segments, by an interpolation of points, or by an interpolation of a raster map which contains rasterized value segments and points.

From Segments

Digitize the contour lines of a segment map with a value domain. Make sure that contour lines that consist of more than one segment have the same value. Code consistency of segments can be checked in the Segment editor.

Then perform a Contour interpolation. Contour interpolation is an operation which first rasterizes the contour lines in a segment map with a value domain, and then calculates values by means of a linear interpolation for pixels that are not covered by segments. For the Contour interpolation operation, you can also use a segment map with a class or ID domain as input, then the segment map must have an attribute table with a value column representing height values.

To create a Digital Elevation Model from Segments:

The Contour Interpolation dialog box appears.

Tip:

When later on you want to create a georeference orthophoto or a georeference direct linear, which will use the created DEM, it is strongly advised to mark the Interpolation check box in the Raster Map Properties dialog box of the DEM.

From Points

Perform a point interpolation on your point map. A point interpolation performs an interpolation on randomly distributed point values and returns regularly distributed point values. This is also known as gridding. In ILWIS, the output values are raster values.

The input map for a point interpolation is a point map where:

To create a Digital Elevation Model from Points:

The Moving Average dialog box or the Moving Surface dialog box appears.

Tips:

From Segments with additional Point data

  1. Digitize the contour lines of a segment map with a value domain. Rasterize the segment map with the Segments to Raster operation:
  2.    

  3. Rasterizing the point data:
    1. If you have a point map with a value domain, rasterize the point map with the Points to Raster operation:
      • from the Operations menu in the Main window, choose Rasterize, Point to Raster,
      • in the Operation-tree, open the Rasterize item, and double-click the PntRas operation, or
      • in the Operation-list, double-click the PntRas operation, or
      • in the Catalog, click a point map with the right mouse button, and select Rasterize, Point to Raster from the context-sensitive menu.

         

    2. If you have a point map that contains points with identifiers (point map with an ID domain) for which elevation values are stored in a column in a linked attribute table,
      • rasterize the point map with the Points to Raster operation (see 2a) and in the Rasterize Point Map dialog box, select the correct column in which your elevation data is stored.

       

      Use the same georeference for both the rasterized segment and rasterized point map.

     

  4. Then, combine the two raster maps by typing the following MapCalc expression on the command line of the Main window:
  5.  

    pntseg

    =

    iff(isundef(pntras), segras, pntras)

       

    where:

    pntseg

    is the output raster map name of the combined point and segment map

    pntras

    is the name of the rasterized point map

    segras

    is the name of the rasterized segment map

       

  6. Finally, interpolate the pntseg raster map which contains the rasterized segments and the rasterized points. Type on the command line of the Main window:
  7.    

    DEM

    =

    mapinterpolcontour(pntseg)

Visualize a DEM

To visualize a DEM, you can simply the DEM in a map window or apply the Shadow filter on the DEM and display the filtered map in a map window; you can overlay the contour lines in one color. Further, you can use Display 3D to create a three-dimensional view of your study area. For more information and an example, see How to display Digital Elevation Models.

See also: