ArcGIS Pro 3.7 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 Function ToMapPoint() As MapPoint
    public MapPoint ToMapPoint()

    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 coordsLasPoint = pt.Coordinate3D;
      var mapPointLas = pt.ToMapPoint();
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also