ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LayerElevationType Enumeration
Example Example

In This Topic
    LayerElevationType Enumeration
    In This Topic
    Specifies the available elevation modes or "types" for layers.
    Syntax
    Members
    MemberDescription
    AtAbsoluteHeight Features that occur at a constant height above a datum, regardless of ground elevation.
    None No applicable elevation type
    OnCustomSurface Features that occur on a surface not represented by ground level.
    OnGround Features that are situated at ground level.
    RelativeToCustomSurface Features are relative to a custom surface.
    RelativeToGround Features that are placed at a known height above the ground.
    RelativeToScene Features will be vertically offset from the scene.
    Example
    Set Elevation Mode for a layer
    {
        //Note: needs to be called on the MCT
        ElevationTypeDefinition elevationTypeDefinition = featureLayer.GetElevationTypeDefinition();
        elevationTypeDefinition.ElevationType = LayerElevationType.OnGround;
        //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToGround;
        //elevationTypeDefinition.ElevationType = LayerElevationType.RelativeToScene;
        //elevationTypeDefinition.ElevationType = LayerElevationType.AtAbsoluteHeight;
        //..so on.
        //Optional: Specify the cartographic offset
        elevationTypeDefinition.CartographicOffset = 1000;
        //Optional: Specify the VerticalExaggeration
        elevationTypeDefinition.VerticalExaggeration = 2;
        if (featureLayer.CanSetElevationTypeDefinition(elevationTypeDefinition))
            featureLayer.SetElevationTypeDefinition(elevationTypeDefinition);
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.LayerElevationType

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also