ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Analyst3D Namespace / LasDataset Class / GetSurfaceConstraints Method

In This Topic
    GetSurfaceConstraints Method
    In This Topic
    Gets the list of SurfaceConstraint used in this LAS dataset. This method must be called on the MCT. Use QueuedTask.Run.
    public IReadOnlyList<SurfaceConstraint> GetSurfaceConstraints()
    Public Function GetSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)

    Return Value

    An IReadOnlyList of SurfaceConstraint.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Surface constraints are features whose geometry capture or define the characteristics of the surface. Breaklines, water polygons, or area clipping boundaries are all examples of surface constraints. Surface constraints can be feature classes or shapefiles.
    Get Surface Constraint information from a LAS Dataset
    var constraintCount = lasDataset.GetSurfaceConstraintCount();
    IReadOnlyList<ArcGIS.Core.Data.Analyst3D.SurfaceConstraint> constraints = lasDataset.GetSurfaceConstraints();
    foreach (var constraint in constraints)
      var dsName = constraint.DataSourceName;
      var wksPath = constraint.WorkspacePath;
      var heightField = constraint.HeightField;
      var surfaceType = constraint.SurfaceType;

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also