ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / TerrainDefinition Class / GetPyramidType Method
Example

In This Topic
    GetPyramidType Method
    In This Topic
    Gets the TerrainPyramidType of the Terrain. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TerrainPyramidType GetPyramidType()
    Public Function GetPyramidType() As TerrainPyramidType

    Return Value

    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 Information from a TerrainDefinition
    var pyramidType = terrainDef.GetPyramidType();
    var pyramidProps = terrainDef.GetPyramidWindowSizeProperties();
    
    var method = pyramidProps.Method;
    var threshold = pyramidProps.ZThreshold;
    var strategy = pyramidProps.ZThresholdStrategy;
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also