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

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.
    Syntax
    public IReadOnlyList<SurfaceConstraint> GetSurfaceConstraints()
    Public Function GetSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)

    Return Value

    An IReadOnlyList of SurfaceConstraint.
    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    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.
    Example
    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;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also