ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetFileCounts Method
Example

In This Topic
    GetFileCounts Method
    In This Topic
    Gets the number of LAS and ZLAS files in this LAS dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetFileCounts() As ValueTuple(Of Integer,Integer)
    public ValueTuple<int,int> GetFileCounts()

    Return Value

    The number of LAS and ZLAS files that comprise 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 Individual File Information from a LAS Dataset
    {
      var (lasFileCount, zLasFileCount) = lasDataset.GetFileCounts();
      IReadOnlyList<ArcGIS.Core.Data.Analyst3D.LasFile> fileInfo = lasDataset.GetFiles();
      foreach (var file in fileInfo)
      {
        var pathFile = file.FilePath;
        var name = file.FileName;
        var ptCount = file.PointCount;
        var zMin = file.ZMin;
        var zMax = file.ZMax;
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.2 or higher.
    See Also