ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RasterLayer Class / GetSurfaceValues Method
The point location.

In This Topic
    GetSurfaceValues Method (RasterLayer)
    In This Topic
    Gets elevation, slope and aspect values from the surface at the specified xy location. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public SurfaceValues GetSurfaceValues( 
       MapPoint point
    )
    Public Function GetSurfaceValues( _
       ByVal point As MapPoint _
    ) As SurfaceValues

    Parameters

    point
    The point location.

    Return Value

    Exceptions
    ExceptionDescription
    point is null or empty.
    An exception occurred within the GetSurfaceValues calculation.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Bilinear interpolation is used to return the z value or elevation on the raster surface.

    GetSurfaceValues will handle differences in spatial reference between the input point and the surface. It will project (a copy of) the input point to match the surface for the sake of interpolation.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also