ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RasterLayer Class / InterpolateZ Method
The x coordinate.
The y coordinate.

In This Topic
    InterpolateZ Method (RasterLayer)
    In This Topic
    Interpolates the z coordinate of the specified location from the surface layer. Bilinear interpolation is used. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public double InterpolateZ( 
       double x,
       double y
    )
    Public Function InterpolateZ( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Double

    Parameters

    x
    The x coordinate.
    y
    The y coordinate.

    Return Value

    The surface elevation Z value.
    Exceptions
    ExceptionDescription
    The set of parameters is invalid for this surface. See CanInterpolateShape.
    An exception occurred within the InterpolateShape calculation.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also