ArcGIS Pro 3.0 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 ElevationLayerCreationParams( 
       Uri elevationSourceUri
    )
    Public Function New( _
       ByVal elevationSourceUri As Uri _
    )

    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
    // wrap in QueuendTask.Run
    
    // 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";
    var eleSourceLayer = LayerFactory.Instance.CreateLayer<Layer>(createParams, surfaceLayer);
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also