ArcGIS Pro 3.7 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 Function GetPyramidType() As TerrainPyramidType
    public TerrainPyramidType GetPyramidType()

    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also