ArcGIS Pro 3.7 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 requires a 3D Analyst license. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function InterpolateZ( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Double
    public double InterpolateZ( 
       double x,
       double y
    )

    Parameters

    x
    The x coordinate.
    y
    The y coordinate.

    Return Value

    The surface elevation Z value.
    Exceptions
    ExceptionDescription
    x or y cannot be NaN.
    An exception occurred within the InterpolateShape calculation.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    A 3D Analyst license is required.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.4 or higher.
    See Also