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

GetPyramidLevels Method
Gets the pyramid level information for this terrain. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
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 = 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