ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / GetElevationProfileFromSurface Method / GetElevationProfileFromSurface(IEnumerable<MapPoint>) Method
A set of points.

In This Topic
    GetElevationProfileFromSurface(IEnumerable<MapPoint>) Method
    In This Topic
    Gets an elevation profile for the specified points. All Z values of the calculated polyline are populated from the Ground Surface Layer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public ElevationProfileResult GetElevationProfileFromSurface( 
       IEnumerable<MapPoint> points
    )
    Public Overloads Function GetElevationProfileFromSurface( _
       ByVal points As IEnumerable(Of MapPoint) _
    ) As ElevationProfileResult

    Parameters

    points
    A set of points.

    Return Value

    An ElevationProfileResult. If successful, this contains the generated polyline.
    Exceptions
    ExceptionDescription
    points cannot be null.
    This Map does not have a visible Ground Surface Layer.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If the surface has no data at a particular input geometry point, then the corresponding output geometry point Z will be set to the value specified in SurfaceZsMissingHandler.DefaultOutputZ.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also