ArcGIS Pro 3.7 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 Function New( _
       ByVal uri As Uri _
    )
    public LasDatasetLayerCreationParams( 
       Uri 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
    {
      string lasPath = @"d:\Data\LASDataset.lasd";
      var lasURI = new Uri(lasPath);
    
      var lasCP = new LasDatasetLayerCreationParams(lasURI);
      lasCP.Name = "My LAS Layer";
      lasCP.IsVisible = false;
      // Note: Needs QueuedTask to run
      {
        //Create the layer to the LAS dataset
        lasDatasetLayer = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP, map);
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also