PointCloudUniqueValueRenderer allows you to colorize points in a PointCloudLayer based on an attribute. This is done by using unique colors to represent points with equal attribute values.

Referenced by: PointCloud Renderers

Properties

PropertyDetails
colorModulationIndicates whether modulation should be used to render the point.
colorUniqueValueInfos[]Unique value infos.
fieldThe name of the field that is used for the renderer.
fieldTransformTypeA transform that is applied to the field value before evaluating the renderer.
Valid values:
  • absoluteValue
  • highFourBit
  • lowFourBit
  • moduloTen
  • none
legendOptionsA legend containing one title, which is a string describing the renderer in the legend.
pointSizeAlgorithmSize algorithms for point cloud performance.
pointsPerInchNumber of points to draw per display inch.
typeSpecifies the type of renderer used.
Valid value of this property pointCloudUniqueValueRenderer

pointCloudUniqueValueRenderer Example

{
"type": "pointCloudUniqueValueRenderer",
"pointSizeAlgorithm": {
"type": "pointCloudFixedSizeAlgorithm",
"useRealWorldSymbolSizes": false,
"size": 4
},
"pointsPerInch": 10,
"field": "CLASS_CODE",
"colorUniqueValueInfos": [
{
"values": [
"1"
],
"label": "1",
"description": "Unassigned",
"color": [
79,
112,
181
]
},
{
"values": [
"2"
],
"label": "2",
"description": "Ground",
"color": [
170,
183,
189
]
},
{
"values": [
"3"
],
"label": "3",
"description": "Low vegetation",
"color": [
247,
255,
188
]
},
{
"values": [
"4"
],
"label": "4",
"description": "Medium vegetation",
"color": [
241,
159,
106
]
},
{
"values": [
"5"
],
"label": "5",
"description": "High vegetation",
"color": [
211,
26,
18
]
}
]
}