HOW TO
This article provides the steps to calculate the length of lines that are created with Z-values disabled, using elevation values from a surface or raster. The resulting length includes the vertical distance between two points.
Taking into account that 2D lines do not have Z-values, they must be converted into a 3D layer to be used to calculate the length.
Note: The Interpolate Shape tool requires either the 3D Analyst or Spatial Analyst license, while the Add Z Information tool requires a 3D Analyst license.
Note: You may consider using the Add Surface Information tool to calculate the length of 2D lines considering elevation values from a surface or raster. Please note that this tool ignores by default the Z values of the 3D features if used as input.
Get help from ArcGIS experts
Download the Esri Support App