ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / Terrain Class / GetPyramidLevels Method
Example

In This Topic
    GetPyramidLevels Method
    In This Topic
    Gets the pyramid level information for this terrain. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetPyramidLevels() As IReadOnlyList(Of TerrainPyramidLevel)
    public IReadOnlyList<TerrainPyramidLevel> GetPyramidLevels()

    Return Value

    An IReadOnlyList of TerrainPyramidLevel.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    Terrain data is organized for fast retrieval. This organization involves the creation of terrain pyramids that are used to quickly retrieve only the data necessary to construct a surface of the required level of detail (LOD) for a given area of interest (AOI) from the database.
    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