Load a point cloud scene layer and explore different renderers, display settings, and attribute filters.
How to use the sample (SampleViewer)
- Open the SampleViewer level if it is not already open.
- Click Play.
- Enter an API key in the input field at the top left.
- Open the Samples drop-down and select PCL.
- Use the sample UI to customize, visualize, and filter the point cloud layer.
How to use the sample (PointCloudLayer level)
- Open the PointCloudLayer level.
- Select the ArcGISMapActor in the Outliner.
- Enter an API key under Authentication in the Details panel.
- Click Play. The default point cloud scene layer loads automatically, and the camera zooms to its extent.
- Use the tabs in the UI:
- Customize changes the point size and point density. Enter another point cloud scene service URL and click Load to replace the current layer.
- Visualize switches between RGB, classification, elevation, and intensity renderers. Renderer options are available only when the loaded layer contains the required attributes. Color modulation can add intensity-based shading when an intensity attribute is available.
- Filter includes or excludes points by classification and return type. Use Reset to restore all filter selections.
- Use the collapse control to hide or restore the main UI and legend. The instruction panel remains available independently.
How it works
- The
APCLControllerfinds theArcGISMapActor, gets its map component, and creates the sample UI. - An
ArcGISPointCloudLayeris created from the scene service URL and added to the map. After the asynchronous load completes, the sample zooms to the layer extent. - The controller reads the point cloud attributes and enables only the renderer and filter controls supported by the loaded layer.
- The sample applies one of four point cloud renderers:
- RGB uses the layer's color values.
- Classification uses unique colors for standard classification codes.
- Elevation uses a color gradient based on height values.
- Intensity uses a grayscale gradient based on intensity values.
- A fixed-size algorithm controls point size, while the points-per-inch setting controls point density. Optional color modulation shades the selected renderer with intensity values.
- Classification selections create an
ArcGISPointCloudValueFilter, and return selections create anArcGISPointCloudReturnFilter. The active filters are combined and applied to the layer. - The UI builds a matching legend for the selected renderer and updates it when the renderer or layer changes.
About the data
This sample loads the BARNEGAT BAY LiDAR UTM point cloud scene service.
Tags
point cloud layer, LiDAR, renderer, classification, elevation, intensity, filter