ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RasterLayer Class / GetSurfaceLength Method / GetSurfaceLength(Multipart) Method
The multipart to calculate the 3D length for.
Version

GetSurfaceLength(Multipart) Method
Gets the 3D length of the multipart by interpolating heights from the surface and calculating the sum of 3D distances between the vertices. Bilinear interpolation is used. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public double GetSurfaceLength( 
   Multipart multipart
)

Parameters

multipart
The multipart to calculate the 3D length for.

Return Value

the 3D length of the multipart.
Exceptions
ExceptionDescription
multipart is null.
An exception occurred within the GetSurfaceLength calculation.
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Portions of the multipart falling outside the interpolation zone are excluded from the calculation. See also GetSurfaceLength(Multipart,Double) if you wish to specify a specific value for densification of the geometry before interpolation occurs. This method uses the default value for raster based surfaces which is equal to the cellsize.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also