public IReadOnlyList<SurfaceConstraint> GetActiveSurfaceConstraints()
Public Function GetActiveSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)
Return Value
A ReadOnlyList of ArcGIS.Core.Data.Analyst3D.SurfaceConstraint
public IReadOnlyList<SurfaceConstraint> GetActiveSurfaceConstraints()
Public Function GetActiveSurfaceConstraints() As IReadOnlyList(Of SurfaceConstraint)
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
var activeSurfaceConstraints = lasDatasetLayer.GetActiveSurfaceConstraints(); // clear all surface constraints (i.e. none are active) lasDatasetLayer.SetActiveSurfaceConstraints(null); // set all surface constraints active using (var lasDataset = lasDatasetLayer.GetLasDataset()) { var surfaceConstraints = lasDataset.GetSurfaceConstraints(); var names = surfaceConstraints.Select(sc => sc.DataSourceName).ToList(); lasDatasetLayer.SetActiveSurfaceConstraints(names); }
Target Platforms: Windows 11, Windows 10