Public Function GetSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)
public IReadOnlyList<SurfaceConstraint> GetSurfaceConstraints()
Return Value
An IReadOnlyList of SurfaceConstraint.
Public Function GetSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)
public IReadOnlyList<SurfaceConstraint> GetSurfaceConstraints()
| Exception | Description |
|---|---|
| ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
{
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 Home, Pro, Enterprise (64 bit)