ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationLayerCreationParams Class / ElevationLayerCreationParams Constructor / ElevationLayerCreationParams Constructor(Uri)
A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Example

In This Topic
    ElevationLayerCreationParams Constructor(Uri)
    In This Topic
    Creates a parameter object with System.Uri.
    Syntax
    Public Function New( _
       ByVal elevationSourceUri As Uri _
    )
    public ElevationLayerCreationParams( 
       Uri elevationSourceUri
    )

    Parameters

    elevationSourceUri
    A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
    Example
    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);
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also