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: