ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SurfaceValues Class
Members Example

In This Topic
    SurfaceValues Class
    In This Topic
    Contains the elevation, slope, aspect values returned from a call to TinLayer.GetSurfaceValues or RasterLayer.GetSurfaceValues.
    Syntax
    public class SurfaceValues 
    Public Class SurfaceValues 
    Example
    Get Elevation, Slope, Aspect from TIN layer at a location
    var tinLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<TinLayer>().FirstOrDefault();
    await QueuedTask.Run(() =>
    {
      // get elevation, slope and aspect values
      SurfaceValues values = tinLayer.GetSurfaceValues(mapPoint);
      var elev = values.Elevation;
      var slopeRadians = values.Slope;
      var slopeDegrees = values.SlopeDegrees;
      var slopePercent = values.SlopePercent;
      var aspectRadians = values.Aspect;
      var aspectDegrees = values.AspectDegrees;
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.SurfaceValues

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also