public class LasStretchRendererDefinition : TinRendererDefinition
Public Class LasStretchRendererDefinition Inherits TinRendererDefinition
public class LasStretchRendererDefinition : TinRendererDefinition
Public Class LasStretchRendererDefinition Inherits TinRendererDefinition
//Must be on the QueuedTask.Run() var lasCP_renderers = new LasDatasetLayerCreationParams(lasDataset); lasCP_renderers.Name = "My LAS Layer"; lasCP_renderers.IsVisible = false; // create a point elevation renderer var ptR = new LasStretchRendererDefinition(); // accept all defaults // create a simple edge renderer var edgeR = new TinEdgeRendererDefintion(); // accept all defaults // add renderers to dictionary var l_dict = new Dictionary<SurfaceRendererTarget, TinRendererDefinition>(); l_dict.Add(SurfaceRendererTarget.Points, ptR); l_dict.Add(SurfaceRendererTarget.Edges, edgeR); // assign dictionary to creation params lasCP_renderers.RendererDefinitions = l_dict; //Create the layer to the LAS dataset var lasDatasetLayer_rd = LayerFactory.Instance.CreateLayer<LasDatasetLayer>(lasCP_renderers, map);
// applies to LAS dataset layers only var elevLasStretchRendererDef = new LasStretchRendererDefinition(ArcGIS.Core.CIM.LASStretchAttribute.Elevation); // accept the defaults for color ramp, etc if (lasDatasetLayer.CanCreateRenderer(elevLasStretchRendererDef)) { CIMTinRenderer renderer = lasDatasetLayer.CreateRenderer(elevLasStretchRendererDef); if (lasDatasetLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Points)) lasDatasetLayer.SetRenderer(renderer, SurfaceRendererTarget.Points); } // OR use a stretch renderer with stretchType standard Deviations var elevLasStretchStdDevRendererDef = new LasStretchRendererDefinition(ArcGIS.Core.CIM.LASStretchAttribute.Elevation); elevLasStretchStdDevRendererDef.StretchType = LASStretchType.StandardDeviations; elevLasStretchStdDevRendererDef.NumberOfStandardDeviations = 2; // accept the defaults for color ramp, etc if (lasDatasetLayer.CanCreateRenderer(elevLasStretchStdDevRendererDef)) { CIMTinRenderer renderer = lasDatasetLayer.CreateRenderer(elevLasStretchStdDevRendererDef); if (lasDatasetLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Points)) lasDatasetLayer.SetRenderer(renderer, SurfaceRendererTarget.Points); }
System.Object
ArcGIS.Desktop.Mapping.LayerDrawingDefinition
ArcGIS.Desktop.Mapping.TinRendererDefinition
ArcGIS.Desktop.Mapping.LasStretchRendererDefinition
Target Platforms: Windows 11, Windows 10