ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasDatasetLayerCreationParams Class
Members Example

In This Topic
    LasDatasetLayerCreationParams Class
    In This Topic
    Represents an object to initialize and create a LasDatasetLayer with pre-defined properties.
    Object Model
    LasDatasetLayerCreationParams ClassLayer ClassLayer ClassLayer ClassLayer ClassLayer ClassCIMDataConnection ClassItem ClassLasDataset ClassCIMLayerDocument Class
    Syntax
    public class LasDatasetLayerCreationParams : LayerCreationParams 
    Public Class LasDatasetLayerCreationParams 
       Inherits LayerCreationParams
    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);
    
    Create a LasDatasetLayer from a LasDataset
    //Must be on the QueuedTask.Run()
    
    var lasCP_ds = new LasDatasetLayerCreationParams(lasDataset);
    lasCP_ds.Name = "My LAS Layer";
    lasCP_ds.IsVisible = false;
    
    //Create the layer to the LAS dataset
    var lasDatasetLayer_ds = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP_ds, map);
    
    Create a LasDatasetLayer with renderers
    //Must be on the QueuedTask.Run()
    
    var lasCP_renderers = new LasDatasetLayerCreationParams(lasDataset);
    lasCP_renderers.Name = "My LAS Layer";
    lasCP_renderers.IsVisible = false;
    
    // create a point elevation renderer
    var ptR = new LasStretchRendererDefinition();
    // accept all defaults
    
    // create a simple edge renderer
    var edgeR = new TinEdgeRendererDefintion();
    // accept all defaults
    
    // add renderers to dictionary
    var l_dict = new Dictionary<SurfaceRendererTarget, TinRendererDefinition>();
    l_dict.Add(SurfaceRendererTarget.Points, ptR);
    l_dict.Add(SurfaceRendererTarget.Edges, edgeR);
    
    // assign dictionary to creation params
    lasCP_renderers.RendererDefinitions = l_dict;
    
    //Create the layer to the LAS dataset
    var lasDatasetLayer_rd = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP_renderers, map);
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.BaseCreationParams
          ArcGIS.Desktop.Mapping.MapMemberCreationParams
             ArcGIS.Desktop.Mapping.LayerCreationParams
                ArcGIS.Desktop.Mapping.LasDatasetLayerCreationParams

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also