ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / Terrain Class / GetPyramidLevelCount Method
Example

In This Topic
    GetPyramidLevelCount Method
    In This Topic
    Gets the number of pyramid levels in this terrain. Also see GetPyramidLevels. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public int GetPyramidLevelCount()
    Public Function GetPyramidLevelCount() As Integer

    Return Value

    The number of pyramid levels in this terrain.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Get Pyramid Level Information from a Terrain
    var levelCount = terrain.GetPyramidLevelCount();
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TerrainPyramidLevel> pyramidLevels = terrain.GetPyramidLevels();
    foreach (var pyramidLevel in pyramidLevels)
    {
      var resolution = pyramidLevel.Resolution;
      var maxScale = pyramidLevel.MaximumScale;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also