ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Layer Class / GetZsAsync Method / GetZsAsync(Geometry) Method
the input geometry

In This Topic
    GetZsAsync(Geometry) Method
    In This Topic
    Obtains a geometry that is similar to the given input geometry, where some or all Z values are populated from the layer.
    Syntax
    public Task<SurfaceZsResult> GetZsAsync( 
       Geometry geometry
    )
    Public Overloads Function GetZsAsync( _
       ByVal geometry As Geometry _
    ) As Task(Of SurfaceZsResult)

    Parameters

    geometry
    the input geometry

    Return Value

    A result that contains a status, plus an output geometry only if the status is favorable.
    Exceptions
    ExceptionDescription
    The input geometry is null.
    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