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

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

    Parameters

    uri
    A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
    Remarks

    Some sample paths to:

    A LasDataset file. C:\Data\LasDataset\utrecht_tile.lasd
    A LasDataset file. C:\Data\LasDataset\Tile_2030.zlas

    Example
    Create a LasDatasetLayer
    //Must be on the QueuedTask.Run()
    
    string lasPath = @"d:\Data\LASDataset.lasd";
    var lasURI = new Uri(lasPath);
    
    var lasCP = new LasDatasetLayerCreationParams(lasURI);
    lasCP.Name = "My LAS Layer";
    lasCP.IsVisible = false;
    
    //Create the layer to the LAS dataset
    var lasDatasetLayer = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP, map);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also