ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LasPointRailSelectionFilter Class / SearchRadius Property
Example

In This Topic
    SearchRadius Property (LasPointRailSelectionFilter)
    In This Topic
    Gets and sets the search radius in meters. This is the distance from the moving window's endpoints within which a point is assessed as a rail point. The default value is 0.25 meters.
    Syntax
    public double SearchRadius {get; set;}
    Public Property SearchRadius As Double
    Remarks
    A good value for the search radius should allow for jumping gaps but not be excessively large, as a larger value will significantly slow down the selection.
    Example
    Select using LasPointRailSelectionFilter
    // must be on MCT 
    
    var railFilter = new LasPointRailSelectionFilter();
    railFilter.VisiblePoints = true;
    railFilter.ClassCodes = new List<int>();  // empty list means all classification codes
    railFilter.FilterGeometry = geometry;
    
    // configure a few of the properties and accept defaults for others
    railFilter.SearchRadius = 0.5; // meters
    railFilter.RailThickness = 0.2; // meters
    railFilter.MaximumLength = 225; // meters
    
    var railSelCount = await lasDatasetLayer.SelectAsync(railFilter, SelectionCombinationMethod.New);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also