HOW TO

Smooth contour lines in ArcGIS Pro

Last Published: April 8, 2024

Summary

Contour lines are important in a map to help visualize surface topology and are a good way to display terrain surface. Sometimes, when creating a contour feature layer from raster data in ArcGIS Pro, the contour lines created are jagged and less smooth as shown in the image below.

Map with the jagged and less smooth contour lines.

This article describes three workflows involving the Contour function, the Smooth Line tool, and the Focal Statistics tool to smooth contour lines in ArcGIS Pro.

Procedure

Use the Contour function

In ArcGIS Pro, processing some large raster datasets is time-consuming. This workflow is useful for very large datasets such as the World Elevation. In this workflow, the Contour function creates a raster contour output. The output generated is instantaneous and can be exported as a feature line layer or can be visualized as an overlay in a map. This is suitable for visualization purposes as the elevation value of the contour can be displayed based on the source elevation layer using Identify. The Adaptive Smoothing parameter in this function controls the amount of smoothing applied to the contour lines. Refer to ArcGIS Pro: Contour function for more information.

  1. Open the ArcGIS Pro project.
  2. On the Analysis tab, in the Raster group, click Raster Functions.
  3. In the Raster Functions pane, on the System tab, search for and click Contour in the Find Raster Functions search box.
The Contour function in the Raster Functions pane.
  1. In the Contour Properties pane, configure the Parameters tab.
    1. Select the raster layer of the contour from the Raster drop-down list.
    2. Specify the value for Adaptive Smoothing. The default value is 2.5. A higher value produces smoother contour lines and appears less jagged. Refer to ArcGIS Pro: Parameters for more information.
    3. For Contour Type, ensure the default Contour lines option is selected.
    4. For Z Base, specify the base contour value. In this example, the value is set to 50 meters.
    5. Specify either the Number Of Contours or Contour Interval field to determine the space between two contour lines. In this example, Contour Interval is specified as 50.
Note:
Define the space between the two contour lines using either the static (by specifying the Contour Interval field) or dynamic (by specifying the Number Of Contours field) value.
  1. Click Create new layer.
The Contour function tool pane to be configured.

The contour lines created using the Contour function appear smoother than the original contour lines.

The map displaying different contour layers created using various tools and function.

Use the Smooth Line tool

Note:
The Smooth Line tool requires an ArcGIS Desktop Standard or Advanced license.
  1. Open the ArcGIS Pro project.
  2. In the Geoprocessing pane, search for and click the Smooth Line tool. Refer to ArcGIS Pro: Run a tool in the Geoprocessing pane for instructions.
  3. In the Smooth Line pane, configure the Parameters tab.
    1. Select the contour feature layer from the Input Features drop-down list.
    2. Provide a name for Output Feature Class, and click Browse The Browse icon. to specify the location for the output feature class.
    3. Select the smoothing algorithm method for the contour lines from the Smoothing Algorithm drop-down list. Refer to ArcGIS Pro: Usage for more information. In this example, Polynomial Approximation with Exponential Kernel (PAEK) is selected.
Note:
Skip Step (d) if 'Bezier interpolation' is selected as the smoothing algorithm method.
  1. Specify the preferred value and unit for Smoothing Tolerance. Refer to ArcGIS Pro: Parameters for more information. In this example, the tolerance value is set to 500 meters.
  2. Click Run.
The Smooth Line tool pane to be configured.

The contour lines created using the Smooth Line tool appear smoother than the original contour lines.

The map displaying original contour line in green and the smoother contour line in orange.

Use the Focal Statistics tool

Note:
The Focal Statistics tool requires a Spatial Analyst or Image Analyst license, and the Contour tool requires the Spatial Analyst or 3D Analyst license.
  1. Open the ArcGIS Pro project.
  2. Smooth the raster layer by averaging the cell values using the Focal Statistics tool.
    1. In the Geoprocessing pane, search for and click the Focal Statistics tool. Refer to ArcGIS Pro: Run a tool in the Geoprocessing pane for instructions.
    2. In the Focal Statistics pane, on the Parameters tab, select the raster layer of the contour from the Input raster drop-down list.
    3. Provide a name for Output raster, and click Browse The Browse icon. to specify the location for the output file.
    4. Use the default details for Neighborhood and Statistics type. Refer to ArcGIS Pro: Parameters for more information.
    5. Click Run.
The Focal Statistics tool pane to be configured.
  1. Create a contour feature layer using the Contour tool.
    1. In the Geoprocessing pane, search for and click the Contour tool. Refer to ArcGIS Pro: Run a tool in the Geoprocessing pane for instructions.
    2. In the Contour pane, on the Parameters tab, select the raster layer from the Input raster drop-down list.
    3. Provide a name for Output feature class, and click Browse The Browse icon. to specify the location for the contour feature layer.
    4. For Contour interval, specify the space between two contour lines. In this example, the value is set to 50 meters.
    5. For Base contour, specify the base contour value. In this example, the value is set to 50 meters.
    6. For Contour type, ensure the default Contour option is selected.
    7. Click Run.
The Contour tool pane to be configured.

The contour lines created using the Focal Statistics tool appear smoother than the original contour lines.

The map displaying original contour line in green and the smoother contour line in pink.

The image below shows the contour lines created using different tools in ArcGIS Pro.

The map displaying different contour layers created using various tools and function.

Article ID:000027916

Software:
  • ArcGIS Pro 2 x
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options