ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasPointDisplayFilterType Enumeration
Example Example

In This Topic
    LasPointDisplayFilterType Enumeration
    In This Topic
    Coarse grained filter for display of points in a LAS dataset. See LasDatasetLayer.SetDisplayFilter.
    Syntax
    public enum LasPointDisplayFilterType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable  
    Public Enum LasPointDisplayFilterType 
       Inherits System.Enum
       Implements System.IComparable, System.IConvertible, System.IFormattable 
    Members
    MemberDescription
    AllPoints Display all points.
    FirstReturnPointsDisplay only the first-return points. See ArcGIS.Core.Data.Analyst3D.LasReturnType.Return1.
    Ground Display only the points flagged as ground points.
    NonGround Display all the points that are not flagged as ground points.
    Example
    Get and Set Display Filter
    // get the current display filter
    LasPointDisplayFilter ptFilter = lasDatasetLayer.GetDisplayFilter();
    
    
    // display only ground points
    lasDatasetLayer.SetDisplayFilter(LasPointDisplayFilterType.Ground);
    
    // display first return points
    lasDatasetLayer.SetDisplayFilter(LasPointDisplayFilterType.FirstReturnPoints);
    
    // set display filter to a set of classification codes
    List<int> classifications = new List<int>() { 4, 5, 7, 10 };
    lasDatasetLayer.SetDisplayFilter(classifications);
    
    // set display filter to a set of returns
    List<ArcGIS.Core.Data.Analyst3D.LasReturnType> returns = new List<ArcGIS.Core.Data.Analyst3D.LasReturnType>()
            { ArcGIS.Core.Data.Analyst3D.LasReturnType.ReturnFirstOfMany};
    lasDatasetLayer.SetDisplayFilter(returns);
    
    // set up a display filter
    var newDisplayFilter = new LasPointDisplayFilter();
    newDisplayFilter.Returns = new List<ArcGIS.Core.Data.Analyst3D.LasReturnType>()
            { ArcGIS.Core.Data.Analyst3D.LasReturnType.ReturnFirstOfMany, ArcGIS.Core.Data.Analyst3D.LasReturnType.ReturnLastOfMany};
    newDisplayFilter.ClassCodes = new List<int>() { 2, 4 };
    newDisplayFilter.KeyPoints = true;
    newDisplayFilter.WithheldPoints = false;
    newDisplayFilter.SyntheticPoints = false;
    newDisplayFilter.NotFlagged = false;
    lasDatasetLayer.SetDisplayFilter(returns);
    
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.LasPointDisplayFilterType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also