ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetPointByID Method / GetPointByID(Double,Geometry) Method
The ID of the point to get.
The area to search. Default value is null. The geometry, if specified, must be a ArcGIS.Core.Geometry.MapPoint or an ArcGIS.Core.Geometry.Envelope.
Example

In This Topic
    GetPointByID(Double,Geometry) Method
    In This Topic
    Gets the points specified by the point ID. Because the LAS dataset can reference multiple LAS files, more than one point with the specified point ID can be found. If a geometry is specified, then only this spatial area is searched. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Function GetPointByID( _
       ByVal pointID As Double, _
       Optional ByVal geometry As Geometry _
    ) As IReadOnlyList(Of LasPoint)

    Parameters

    pointID
    The ID of the point to get.
    geometry
    The area to search. Default value is null. The geometry, if specified, must be a ArcGIS.Core.Geometry.MapPoint or an ArcGIS.Core.Geometry.Envelope.

    Return Value

    An IReadOnlyList of LasPoint.
    Exceptions
    ExceptionDescription
    The point ID is invalid or the geometry type is invalid.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    if geometry is null, then the extent of the dataset is used. The geometry, if specified, must be a ArcGIS.Core.Geometry.MapPoint or an ArcGIS.Core.Geometry.Envelope. It will be projected into the spatial reference of the LAS dataset. The z information on any input geometry is honored.
    Example
    Access LAS Points by ID
    // access by ID
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.LasPoint> pts = lasDataset.GetPointByID(123456);
    
    pts = lasDataset.GetPointByID(123456, envelope);
    ArcGIS.Core.Data.Analyst3D.LasPoint pt = pts.FirstOrDefault();
    
    var coords = pt.Coordinate3D;
    var mapPoint = pt.ToMapPoint();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also