ArcGIS Pro 3.7 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 Function GetPyramidLevelCount() As Integer
    public int GetPyramidLevelCount()

    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 = terrainDataset.GetPyramidLevelCount();
      IReadOnlyList<ArcGIS.Core.Data.Analyst3D.TerrainPyramidLevel> pyramidLevels = terrainDataset.GetPyramidLevels();
      foreach (var pyramidLevel in pyramidLevels)
      {
        var resolution = pyramidLevel.Resolution;
        var maxScale = pyramidLevel.MaximumScale;
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also