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

In This Topic
    AspectDegrees Property
    In This Topic
    Gets the aspect in degrees.
    Syntax
    public double AspectDegrees {get;}
    Public ReadOnly Property AspectDegrees As Double
    Remarks
    Aspect is defined as the direction of steepest slope. The possible range of values falls between 0.0 and 360. 0.0 represents a north facing slope with increasing values changing aspect in a clockwise direction. For example, 90 degrees is due east, 180 degrees due south, and 270 degrees due west.
    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;
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also