HOW TO

Calculate the slope of a line feature across a surface in ArcGIS Pro

Last Published: July 21, 2023

Summary

The properties of an elevation surface can be used to determine the slope of each segment along a line feature across the surface using the Add Surface Information tool. For example, calculating the slope of a hiking trail or a proposed road based on the spatial and elevation information derived from the raster layer. The slope of each cell of the grid is used to determine the slope of the line intersecting the cell. The tool attributes the line features with the following slope information:

  • The minimum slope is obtained from the segment with the value closest to 0, or horizontal grade.
  • The maximum slope is obtained from the segment with the largest calculated value.
  • The average slope is obtained by weighing each slope by its 3D length, then determining the average. This results in longer segments having a greater influence on the resulting value over shorter segments.

Procedure

Note:
The Add Surface Information tool requires the 3D Analyst or Spatial Analyst license.
  1. In ArcGIS Pro, create a new project, and add the line feature class and elevation data. The elevation data can be in the form of an LAS dataset, mosaic, raster, terrain, or TIN surface.
  2. Optionally, split the line features at their vertices using the Split Line At Vertices tool. Splitting the lines allows the slope to be calculated for each line segment.
  3. Calculate the slope of the line features using the Add Surface Information tool.
    1. For Input Features, select the line feature class.
    2. For Input Surface, select the surface layer containing elevation data.
    3. For Output Property, check the check box for the spatial information to be written to the line feature's attribute table.
    4. If necessary, select a suitable interpolation method under Method.
    5. Click Run.
The Add Surface Information tool.

The map shows the minimum, maximum, and average slope values of each line segment in percentage (grade).

The slope values for each line segment.

Article ID:000025428

Software:
  • ArcGIS Pro 2 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