[pdal] Building a PDAL pipeline in python

Peter Tittmann ptittmann at gmail.com
Thu Mar 2 09:24:11 PST 2017


Hi,

Using: pdal 1.4.0 (git-version: Release)

I’m developing a pipeline in python which produces the following JSON:

> pipeString ='{"pipeline": ["./pgc_input/chug_lidar/Kenai/Points/Ken_00403.las", {"radius": 46.330202145018255, "type": "filters.crop", "point": "POINT(671977.\
> 149785037 6621359.13979493)"}]}’


PDAL doesn’t seem to understand radius using `filters.crop`:

> pipe = pdal.Pipeline(unicode(pipeString))

> pipe.validate()
> Warning 1: Cannot find pcs.csv
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call last)
> <ipython-input-10-ec1c398a767a> in <module>()
> ----> 1 pipe.validate()
> 
> /usr/lib/python2.7/dist-packages/pdal/pipeline.pyc in validate(self)
>      40
>      41     def validate(self):
> ---> 42         return self.p.validate()
>      43
>      44     def get_arrays(self):
> 
> pdal/libpdalpython.pyx in pdal.libpdalpython.PyPipeline.validate (pdal/libpdalpython.cpp:2627)()
> 
> RuntimeError: filters.crop: Unexpected argument 'radius'.
> 


Any suggestions?

Thanks!

Peter


More information about the pdal mailing list