ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / GetZsFromSurface Method / GetZsFromSurface(Geometry) Method
The input geometry

In This Topic
    GetZsFromSurface(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 default Ground Surface Layer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public SurfaceZsResult GetZsFromSurface( 
       Geometry geometry
    )
    Public Overloads Function GetZsFromSurface( _
       ByVal geometry As Geometry _
    ) As 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.
    This Map does not have a Ground Surface Layer
    This Map does not have a CIM definition.
    This Map does not have any surfaces.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If the surface 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.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also