ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationLayerCreationParams Class
Members Example

In This Topic
    ElevationLayerCreationParams Class
    In This Topic
    Represents an object to initialize and create an elevation surface layer with pre-defined properties.
    Object Model
    ElevationLayerCreationParams ClassLayer ClassLayer ClassLayer ClassLayer ClassLayer ClassCIMDataConnection ClassItem ClassCIMLayerDocument Class
    Syntax
    Public Class ElevationLayerCreationParams 
       Inherits LayerCreationParams
    public class ElevationLayerCreationParams : LayerCreationParams 
    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);
    }
    Add an elevation source to an existing elevation surface layer
    {
        ElevationSurfaceLayer surfaceLayer = null;
        // surfaceLayer could also be the ground layer
        string uri = "https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
        var createParams = new ElevationLayerCreationParams(new Uri(uri));
        createParams.Name = "Terrain 3D";
        //Note: needs to be called on the MCT
        var eleSourceLayer = LayerFactory.Instance.CreateLayer<Layer>(createParams, surfaceLayer);
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.BaseCreationParams
          ArcGIS.Desktop.Mapping.MapMemberCreationParams
             ArcGIS.Desktop.Mapping.LayerCreationParams
                ArcGIS.Desktop.Mapping.ElevationLayerCreationParams

    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also