ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasPointClusterSelectionFilter Class / MaximumNumberOfPoints Property
Example

In This Topic
    MaximumNumberOfPoints Property
    In This Topic
    Gets and sets the maximum number of points to be included in the selection. The default value is 1000.
    Syntax
    public int MaximumNumberOfPoints {get; set;}
    Public Property MaximumNumberOfPoints As Integer
    Example
    Select using LasPointClusterSelectionFilter
    // must be on MCT 
    
    var clusterFilter = new LasPointClusterSelectionFilter();
    clusterFilter.VisiblePoints = true;
    clusterFilter.ClassCodes = new List<int>();  // empty list means all classification codes
    clusterFilter.FilterGeometry = geometry;
    
    clusterFilter.SearchRadius = 0.5; // meters
    clusterFilter.MaximumNumberOfPoints = 500;
    
    var clusterSelCount = await lasDatasetLayer.SelectAsync(clusterFilter, SelectionCombinationMethod.New);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also