ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasPoint Class / ToMapPoint Method
Example

In This Topic
    ToMapPoint Method (LasPoint)
    In This Topic
    Gets a ArcGIS.Core.Geometry.MapPoint with the X, Y and Z values. The spatial reference of the returned point is set to the spatial reference of the LAS dataset. See LasDatasetDefinition.GetSpatialReference. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public MapPoint ToMapPoint()
    Public Function ToMapPoint() As MapPoint

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    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