HOW TO

Glätten von Konturlinien in ArcGIS Pro

Last Published: April 8, 2024

Zusammenfassung

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 Smooth Line tool, the Focal Statistics tool, and the Contour function to smooth contour lines in ArcGIS Pro.

Vorgehensweise

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.

Use the Contour function

In this workflow, the Contour function creates a raster contour output. The Adaptive Smoothing parameter in this function controls the amount of smoothing applied to the contour lines.

  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.

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.

Artikel-ID:000027916

Benachrichtigungen erhalten und Lösungen für neue oder häufige Probleme finden

Unser neuer KI-Chatbot stellt zusammengefasste Antworten und Videolösungen für Sie bereit.

Esri Support App herunterladen

Zugehörige Informationen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln