PDAL Streaming Audit for Drone Point Cloud Workflows
Validate a PDAL pipeline, require streaming explicitly, and review metadata and resource use before processing a large drone survey point cloud.

Define the audit before loading the survey
A drone point cloud may open quickly in a spatial viewer yet demand a very different amount of memory during analysis. Viewing, decoding, filtering and exporting are separate operations. For a NiVO survey handover, the useful preparation question is whether the exact processing pipeline can run with the resources available on the receiving workstation. This tutorial builds a deliberately modest PDAL audit that reads a named LAS or LAZ input, summarizes coordinates and produces metadata without writing another point cloud. The filenames are illustrative; no project dataset, benchmark, or aircraft capability is asserted.
Start by identifying the accepted input and its role. Record the filename, byte digest, expected point count, coordinate reference information and whether the file represents one block or a combined delivery. Keep the source unchanged and create a separate working directory for the pipeline and reports. Select an input whose format and required dimensions the installed PDAL build actually supports. The official LAS reader documentation includes format limitations, so a familiar extension alone does not establish compatibility. Resolve unreadable input or missing attributes before treating the processing mode as the main problem.
Understand what streaming changes
PDAL distinguishes standard processing from streaming. Its pipeline documentation describes standard mode as reading the input into memory before processing, while streaming passes points through in chunks. Algorithms needing broad access to points can prevent a pipeline from streaming. The application normally chooses streaming when possible and otherwise falls back to standard processing. That fallback matters when a small trial succeeds but a much larger delivery is queued later. Record the intended mode explicitly rather than assuming every JSON pipeline has the same memory behavior because the reader accepts the same source file.
Streamability also does not prove that every option has a constant memory cost. Inspect the state accumulated by each stage, not just how points enter it. The PDAL statistics implementation maintains extra collections for some requested statistics, including stored values for median-related calculations and maps for enumerated values. A streaming interface therefore does not replace resource observation. For this first audit, request only basic coordinate statistics and leave global statistics and enumeration out. This narrow purpose makes the report easier to interpret and avoids silently turning a readiness check into a more expensive analytical task.

Product context only; this photograph does not depict the constructed examples in this article.
Write a minimal metadata pipeline
Save the following JSON as audit.json in the working directory. Replace survey.laz with the path to the accepted local input, using valid JSON escaping when necessary. Explicit stage types make the intended reader and final behavior visible to a reviewer. The statistics stage requests X, Y and Z summaries; the null writer discards the point stream instead of creating a second cloud. This is a read-and-report exercise. It deliberately does not classify ground, reproject coordinates, change dimension types, remove outliers or prove that any of those later operations would preserve the survey contract.
Before running it, check that the selected file belongs to the intended survey revision and that no default path selects another dataset. Keep a copy of the exact JSON alongside the input identity and the installed software version. If the project requires additional dimensions, list those requirements separately rather than assuming the three-coordinate audit examines them. A compact summary is useful because its scope is clear. It becomes misleading when a reviewer mistakes the absence of an error for proof that classifications, extra attributes, spatial reference definitions or every individual point have been independently validated.
[
{"type":"readers.las","filename":"survey.laz"},
{"type":"filters.stats","dimensions":"X,Y,Z"},
{"type":"writers.null"}
]Validate, then require streaming explicitly
Run validation first. The documented --validate option checks the pipeline without processing its points and reports whether it can stream. Preserve the complete response and process exit status. A successful validation is preparation evidence, not evidence that the entire input has been decoded successfully. If it reports that streaming is unavailable, inspect the actual stages and options before proceeding. Do not remove a required analysis step merely to obtain a favorable result. Decide whether a different valid workflow, adequate hardware or an explicitly planned standard-mode run is appropriate for the original task.
After reviewing validation, run the same JSON with --stream and request a metadata file in the working directory. The explicit mode tells PDAL to exit when streaming is not possible instead of silently selecting standard processing. Treat an existing output report as a possible remnant of an earlier run; use a fresh report name or an empty run directory and confirm completion before opening it. Record failures and warnings as they occur. This teaching command has been reviewed against PDAL documentation, but it is not a claim that a real NiVO dataset was processed during article preparation.
pdal pipeline audit.json --validate
pdal pipeline audit.json --stream --metadata audit-metadata.jsonRead the result with its limits
Inspect the metadata for the requested statistics stage and verify that all three dimensions have meaningful summaries. Compare the observed count and coordinate ranges with the accepted file inventory and known project context. An unexpected count, empty summary or implausible range should pause the larger workflow until its cause is understood. Avoid copying a field from the reader header and presenting it as an independent full-file check. Also distinguish a coordinate range from a footprint boundary: minimum and maximum values describe an envelope, which says little about holes, local density or support inside that envelope.
Observe peak process memory, elapsed time and available storage using the workstation tools normally used by the team. Record the machine, input identity and settings with those observations. They describe that run, not a universal conversion from compressed file size to required memory. A compressed LAZ byte count is especially unsuitable as a direct promise about processing resources. If a pilot subset is used, explain how it was selected and which conditions it represents. Do not extrapolate neighborhood complexity, attribute content or every downstream stage from a convenient small sample without a separate justification.
Recheck the final production graph
A readiness result applies to the graph that was checked. Adding a neighborhood operation, changing statistics options, using another reader or replacing the final writer creates a new processing question. Validate and test that final graph before committing to the full delivery. Where a required operation needs broader context, arbitrary file splitting can also change its meaning at boundaries. Choose partitioning and any overlap rules according to the algorithm, then verify the resulting analytical product separately. Successful streaming of the audit does not certify the behavior of a ground classifier, terrain model or point cloud export.
Close the audit with a small reproducible record: accepted input identity, exact pipeline, software environment, validation response, execution status, fresh metadata report and observed resource use. State which dimensions and comparisons were checked and which quality questions remain open. Keep this record with the processing decision so another analyst can repeat the same preparation on the receiving workstation. In a NiVO mapping workflow, this supports a practical handover between acquisition and analysis while keeping aircraft performance, measured survey accuracy and processing readiness as separate matters that require their own relevant evidence.



