ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Map Class / GetZsFromSurfaceAsync Method / GetZsFromSurfaceAsync(Geometry,ElevationSurfaceLayer) Method
the input geometry
Identifies the surface to be used - if specified null, then the default Ground Surface will be used
Version

GetZsFromSurfaceAsync(Geometry,ElevationSurfaceLayer) Method
Obtains a geometry that is similar to the given input geometry, where all Z values are populated from the specified Elevation Surface Layer.
Syntax

Parameters

geometry
the input geometry
surfaceLayer
Identifies the surface to be used - if specified null, then the default Ground Surface will be used

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 the specified surfaceLayer.
This Map does not have a default Ground Surface (when surfaceLayer is null)
This Map does not have a CIM definition.
This Map does not have any surfaces.
Remarks
If the surface has no data at a particular input geometry point or vertex, then the corresponding output geometry point or vertex Z will be set to the value specified in SurfaceZsMissingHandler.DefaultOutputZ.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also