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

In This Topic
    MaximumLength Property
    In This Topic
    Gets and sets the maximum length in meters. This is the longest allowable distance in both directions along the rail for selection points as rail points. The default value is 200 meters.
    Syntax
    public double MaximumLength {get; set;}
    Public Property MaximumLength As Double
    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