PDAL Python seamlessly integrates with NumPy, allowing you to read point cloud data into arrays, perform operations using NumPy, and pass the results back to PDAL for further processing.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.
Complete workflow example
This example demonstrates the full cycle between PDAL and Python:- Read a point cloud file into a NumPy array
- Filter the array using NumPy operations
- Pass the filtered array back to PDAL for additional filtering
- Write the final result to output files
Reading data into NumPy arrays
pipeline.arrays returns a list of NumPy arrays, one for each PointView in the pipeline output. Most pipelines produce a single array.Filtering arrays with NumPy
Once you have data in a NumPy array, you can use standard NumPy operations to filter it:Passing filtered arrays back to PDAL
You can pass NumPy arrays back to PDAL for further processing:.pipeline() method on a stage accepts a NumPy array as input, allowing you to chain Python processing with PDAL operations.
Writing filtered data
Once you’ve filtered your data, write it to various formats:You can chain multiple writers to output the same data in different formats simultaneously using the pipe operator.