GetElevationProfileFromSurfaceAsync(IEnumerable<MapPoint>) Method
Gets an elevation profile for the specified points.
All Z values of the calculated polyline are populated from the Ground Surface Layer.
Parameters
- points
- A set of points.
Return Value
An
ElevationProfileResult. If successful, this contains the generated polyline.
Get Elevation profile from the default ground surface
// find the elevation profile for a polyline / set of polylines
var result = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync([lineGeom]);
if (result.Status == SurfaceZsResultStatus.Ok)
{
var polylineZ = result.Polyline;
// process the polylineZ
}
// find the elevation profile for a set of points
result = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync(pts);
if (result.Status == SurfaceZsResultStatus.Ok)
{
var polylineZ = result.Polyline;
// process the polylineZ
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.4 or higher.