This guide covers the fundamentals of using PDAL Python to process point cloud data with simple pipeline operations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/PDAL/python/llms.txt
Use this file to discover all available pages before exploring further.
Simple pipeline from JSON
The most straightforward way to use PDAL Python is to define a pipeline as a JSON string. Here’s an example that reads an ASPRS LAS file and sorts it by theX dimension:
Execute and access results
Execute the pipeline
Call the
execute() method to run the pipeline. It returns the number of points processed:The
execute() method returns the total number of points that were processed by the pipeline.Using filters
Filters transform point cloud data. The example above usesfilters.sort to sort points by a specific dimension. You can chain multiple filters in your pipeline: