Skip to main content

Build Contours

Description

Generates contours from Digital Elevation Model (DEM) raster data. User can specify contour interval and starting elevation and optionally limit the processing extent to an area of interest using a limit polygon. Contours are post-processed to enhance readability.

The post-processing methodology is based on workflows designed for the National Resource Conservation Service (NRCS) National Enterprise Elevation Project (NEEP) and includes:

  • Step 1 (Generate) - Initial contour lines are generated using the Contour geoprocessing tool from the Spatial Analyst toolbox with a contour interval of 2 feet.
  • Step 2 (Simplify) - Contour lines are run through the Simplify Line tool from the Cartography toolbox to remove vertices, reduce disk size and improve processing speed. The tool uses the Douglas-Peucker algorithm to retain critical points with a simplification tolerance of 10 centimeters.
  • Step 3 (Smooth) - Once simplified, contour lines are passed through the Smooth Line tool from the Cartography toolbox to enhance visual interpretation and remove any jaggedness resulting from coarse raster cell sizes. This step uses the PAEK algorithm with a smoothing tolerance of 10 meters.
  • Step 4 (Clip) - If provided, the input AOI is buffered by 10 meters during step 1. This step then uses the input AOI to Clip the resulting smoothed contours back to the intended area.
  • Step 5 (Remove) - If provided, contours shorter than specified length will be removed.

The methodology produces best results on high-quality (resolution) DEMs.

Usage

Parameters

Parameter NameTypeDirectionData TypeDialog Reference
Input DEM RasterRequiredInputRaster LayerRaster dataset/raster layer for which contour lines will be constructed. The methodology produces best results on high-quality (resolution) DEMs.
Contour IntervalRequiredInputDoubleNumber in DEM vertical units defining interval between the contour lines.
Output Contour Feature ClassRequiredOutputFeature ClassOutput feature classes hosting the constructed contour lines.
Base Contour ElevationOptionalInputDoubleStarting contour elevation.
Input Limit PolygonOptionalInputFeature SetAOI - Defines the area within which the contour lines will be constructed.
Remove Short ContoursOptionalInputLinear UnitLength of short contours that will be removed. If greater than 0, any contours with length less than provided value will be removed. If set to 0, no contours will be removed.If Remove_Short_Contour=0, all the resulting contour lines will be kept.There is no python reference for this parameter.