[pdal] loop a directory through a pipeline

Howard Butler howard at hobu.co
Thu Apr 28 07:52:15 PDT 2016


> On Apr 28, 2016, at 9:45 AM, Maxson, Michele L ERDC-RDE-CRREL-NH CIV <Michele.L.Maxson at erdc.dren.mil> wrote:
> 
> How do I loop a directory through a pipeline?  

You have to run a single pipeline over each file in a script and substitute as appropriate

> I currently have a denoiseing pipeline created and I would like to loop it through all the LAZ files in a directory.  I keep getting the error "PDAL:  PipelineReaderJSON: unable to parse pipeline" indicating that the error may lie within the *.json pipeline.  


> I have created a *.json both with a reader and writer and one without for testing and both files result in the "unable to parse pipeline" error.    Are there additional wildcards or code that needs to be included/not included in the *.json?  I am working in Docker and coding within my container using the script found on the pdal.io website "Loop a directory and filter it through a pipeline" as a template.  Thanks for any help.      


Can you post some of your pipeline examples? I presume you are talking about http://www.pdal.io/tutorial/reading.html?highlight=loop#loop-a-directory-and-filter-it-through-a-pipeline which will need some modification to work if you are using Docker and windows.


More information about the pdal mailing list