ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Layer Class / GetZsAsync Method / GetZsAsync(Double,Double) Method
The x-coordinate
The y-coordinate

In This Topic
    GetZsAsync(Double,Double) Method
    In This Topic
    Obtains a point geometry with Z for the specified (x,y); where the Z value is populated from the layer.
    Syntax
    public Task<SurfaceZsResult> GetZsAsync( 
       double x,
       double y
    )
    Public Overloads Function GetZsAsync( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Task(Of SurfaceZsResult)

    Parameters

    x
    The x-coordinate
    y
    The y-coordinate

    Return Value

    A result that contains a status, plus an output geometry only if the status is favorable.
    Remarks
    If the layer 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.

    Use CanGetZsAsync to determine if the layer can be used as an elevation source before calling this function.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also