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

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.
    public IReadOnlyList<TerrainPyramidLevel> GetPyramidLevels()
    Public Function GetPyramidLevels() As IReadOnlyList(Of TerrainPyramidLevel)

    Return Value

    An IReadOnlyList of TerrainPyramidLevel.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    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.
    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;

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also