public SurfaceZsResultStatus Status {get;}
Public ReadOnly Property Status As SurfaceZsResultStatus
public SurfaceZsResultStatus Status {get;}
Public ReadOnly Property Status As SurfaceZsResultStatus
// 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 }
// find the elevation profile for a polyline / set of polylines var eleLayer = MapView.Active.Map.GetElevationSurfaceLayers().FirstOrDefault(l => l.Name == "TIN"); var zResult = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync([lineGeom], eleLayer); if (zResult.Status == SurfaceZsResultStatus.Ok) { var polylineZ = zResult.Polyline; // process the polylineZ } // find the elevation profile for a set of points zResult = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync(pts, eleLayer); if (zResult.Status == SurfaceZsResultStatus.Ok) { var polylineZ = zResult.Polyline; // process the polylineZ }
int numPoints = 20; // use the default ground elevation surface var result = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync(startPt, endPt, numPoints); if (result.Status == SurfaceZsResultStatus.Ok) { var polylineZ = result.Polyline; // process the polylineZ } // use a specific elevation surface var eleLayer = MapView.Active.Map.GetElevationSurfaceLayers().FirstOrDefault(l => l.Name == "TIN"); result = await MapView.Active.Map.GetElevationProfileFromSurfaceAsync(startPt, endPt, numPoints, eleLayer); if (result.Status == SurfaceZsResultStatus.Ok) { var polylineZ = result.Polyline; // process the polylineZ }
Target Platforms: Windows 11, Windows 10