ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetUniqueClassCodes Method
Example

In This Topic
    GetUniqueClassCodes Method
    In This Topic
    Gets the set of classification codes used in this LAS dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<int> GetUniqueClassCodes()
    Public Function GetUniqueClassCodes() As IReadOnlyList(Of Integer)

    Return Value

    The set of class codes used in this LAS dataset.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Get classification codes / Returns from a LAS Dataset
    var classCodes = lasDataset.GetUniqueClassCodes();
    var returns = lasDataset.GetUniqueReturns();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also