GetZsFromSurfaceAsync(Geometry) Method
Obtains a geometry that is similar to the given input geometry, where all Z values are populated from the default Ground Surface Layer.
Parameters
- geometry
- the input geometry
Return Value
a result that contains a status , plus an output geometry only if the status is favorable
Get Z values from a surface
var geometry = await QueuedTask.Run<Geometry>(() =>
{
Geometry mapCentergeometry = MapView.Active.Map.CalculateFullExtent().Center;
return mapCentergeometry;
});
//Pass any Geometry type to GetZsFromSurfaceAsync
var surfaceZResult = await MapView.Active.Map.GetZsFromSurfaceAsync(geometry);
return surfaceZResult;
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.