Parameters
- uri
- A System.Uri represents the path or url to a dataset or .lyrx or .lpkx file.
Some sample paths to:
A LasDataset file. | C:\Data\LasDataset\utrecht_tile.lasd |
A LasDataset file. | C:\Data\LasDataset\Tile_2030.zlas |
//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);
Target Platforms: Windows 11, Windows 10