ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationLayerCreationParams Class / ElevationLayerCreationParams Constructor / ElevationLayerCreationParams Constructor(CIMDataConnection)
A ArcGIS.Core.CIM.CIMDataConnection object.
Example

In This Topic
    ElevationLayerCreationParams Constructor(CIMDataConnection)
    In This Topic
    Creates a parameter object with ArcGIS.Core.CIM.CIMDataConnection.
    Syntax
    Public Function New( _
       ByVal sourceLayerDataConnection As CIMDataConnection _
    )
    public ElevationLayerCreationParams( 
       CIMDataConnection sourceLayerDataConnection
    )

    Parameters

    sourceLayerDataConnection
    A ArcGIS.Core.CIM.CIMDataConnection object.
    Example
    Create a New Elevation Surface
    {
        //Define a ServiceConnection to use for the new Elevation surface
        var serverConnection = new CIMInternetServerConnection
        {
            Anonymous = true,
            HideUserProperty = true,
            URL = "https://elevation.arcgis.com/arcgis/services"
        };
        CIMAGSServiceConnection serviceConnection = new CIMAGSServiceConnection
        {
            ObjectName = "WorldElevation/Terrain",
            ObjectType = "ImageServer",
            URL = "https://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer",
            ServerConnection = serverConnection
        };
        //Defines a new elevation source set to the CIMAGSServiceConnection defined above
        //Get the elevation surfaces defined in the map
        var listOfElevationSurfaces = map.GetElevationSurfaceLayers();
        //Add the new elevation surface 
        var elevationLyrCreationParams = new ElevationLayerCreationParams(serviceConnection);
        //Note: needs to be called on the MCT
        var elevationSurface = LayerFactory.Instance.CreateLayer<ElevationSurfaceLayer>(
            elevationLyrCreationParams, map);
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also