ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasPointSelectionFilter Class
Members Example

In This Topic
    LasPointSelectionFilter Class
    In This Topic
    Represents the filter used when selecting points in a LAS dataset layer for the purposes of editing classification codes or classification flags.

    See LasDatasetLayer.SelectAsync.

    Object Model
    LasPointSelectionFilter ClassGeometry Class
    Syntax
    public class LasPointSelectionFilter 
    Public Class LasPointSelectionFilter 
    Remarks
    Specify the FilterGeometry to use to search for points. Set VisiblePoints and ClassCodes to add additional criteria to the filter.

    Additional filters are available for specialized selection algorithms; see LasPointPlaneSelectionFilter, LasPointClusterSelectionFilter, LasPointRailSelectionFilter and LasPointPipelineSelectionFilter.

    Example
    Select using LasPointSelectionFilter
    // must be on MCT 
    
    // create the filter
    var filter = new LasPointSelectionFilter();
    // set the filter geometry
    // don't set VisiblePoints, ClassCodes - use the existing layer values
    filter.FilterGeometry = geometry;
    
    // perform the selection
    var selCount = await lasDatasetLayer.SelectAsync(filter, SelectionCombinationMethod.New);
    
    // set up a second filter and configure the VisiblePoints, ClassCodes
    // note that the ClassCodes is using only (4,5)
    // whereas the layers setting is (3,4,5)
    var filter2 = new LasPointSelectionFilter();
    filter2.VisiblePoints = true;
    filter2.ClassCodes = new List<int>() { 4, 5 };
    filter2.FilterGeometry = geometry;
    
    // perform the selection
    selCount = await lasDatasetLayer.SelectAsync(filter2, SelectionCombinationMethod.New);
    Inheritance Hierarchy
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also