public enum LasAttributeType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum LasAttributeType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum LasAttributeType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum LasAttributeType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Classification | Classification codes. |
None | None. |
NumberOfReturns | Number of returns. |
PointSourceID | Point source ID. |
ReturnNumber | Return number. |
UserData | User data. |
// applies to LAS dataset layers only var lasPointsClassificationRendererDef = new LasUniqueValueRendererDefinition(LasAttributeType.Classification); // accept the defaults for color ramp, symbolTemplate, symbol scale factor var lasDatasetLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<LasDatasetLayer>().FirstOrDefault(); if (lasDatasetLayer == null) return; if (lasDatasetLayer.CanCreateRenderer(lasPointsClassificationRendererDef)) { CIMTinRenderer renderer = lasDatasetLayer.CreateRenderer(lasPointsClassificationRendererDef); if (lasDatasetLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Points)) lasDatasetLayer.SetRenderer(renderer, SurfaceRendererTarget.Points); }
// applies to LAS dataset layers only var lasPointsReturnsRendererDef = new LasUniqueValueRendererDefinition(LasAttributeType.ReturnNumber); lasPointsReturnsRendererDef.ModulateUsingIntensity = true; lasPointsReturnsRendererDef.SymbolScaleFactor = 1.0; // accept the defaults for color ramp, symbolTemplate if (lasDatasetLayer.CanCreateRenderer(lasPointsReturnsRendererDef)) { CIMTinRenderer renderer = lasDatasetLayer.CreateRenderer(lasPointsReturnsRendererDef); if (lasDatasetLayer.CanSetRenderer(renderer, SurfaceRendererTarget.Points)) lasDatasetLayer.SetRenderer(renderer, SurfaceRendererTarget.Points); }
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Mapping.LasAttributeType
Target Platforms: Windows 11, Windows 10