ArcGIS Pro 2.7 API Reference Guide
GetZsFromSurfaceAsync(Geometry,String) Method

ArcGIS.Desktop.Mapping Namespace > Map Class > GetZsFromSurfaceAsync Method : GetZsFromSurfaceAsync(Geometry,String) Method
the input geometry
identifies the surface to be used - if specified null, then the default Ground Surface will be used
Obtains a geometry that is similar to the given input geometry, where all Z values are populated from an Elevation Surface identified by the given surface name.
Syntax
public Task<SurfaceZsResult> GetZsFromSurfaceAsync( 
   Geometry geometry,
   string surfaceName
)
Public Overloads Function GetZsFromSurfaceAsync( _
   ByVal geometry As Geometry, _
   ByVal surfaceName As String _
) As Task(Of SurfaceZsResult)

Parameters

geometry
the input geometry
surfaceName
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 a surface named surfaceName
this Map does not have a default Ground Surface (when surfaceName is specified 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 10, Windows 8.1

See Also

Reference

Map Class
Map Members
Overload List