ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMLayerElevationSurface Class
Members Example

In This Topic
    CIMLayerElevationSurface Class
    In This Topic
    Represents a layer elevation surface.
    Object Model
    CIMLayerElevationSurface ClassCIMLayerElevationSurface ClassCIMLayerElevationSurface Class
    Syntax
    Example
    Set a custom elevation surface to a Z-Aware layer
    {
        //Note: needs to be called on the MCT
        //Define the custom elevation surface to use
        var layerElevationSurface = new CIMLayerElevationSurface
        {
            ElevationSurfaceLayerURI = "https://elevation3d.arcgis.com/arcgis/services/WorldElevation3D/Terrain3D/ImageServer"
        };
        //Get the layer's definition
        var lyrDefn = featureLayer.GetDefinition() as CIMBasicFeatureLayer;
        //Set the layer's elevation surface
        lyrDefn.LayerElevation = layerElevationSurface;
        //Set the layer's definition
        featureLayer.SetDefinition(lyrDefn);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMLayerElevationSurface

    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also