PDAL:无法创build“裁剪”types的筛选器阶段

我想在python中使用pdal。 我开始了一个超级简单的裁剪:

json = """{ "pipeline":[ "ARRA-LFTNE_NewYork_2010_000636.las", { "type":"crop", "bounds":"([616766.770,617765.46],[4510733.640,4511649.800])" }, "output.laz" ] }""" pipeline = pdal.Pipeline(unicode(json,encoding="utf-8")) pipeline.validate() # check if our JSON and options were good pipeline.loglevel = 8 #really noisy count = pipeline.execute() arrays = pipeline.arrays metadata = pipeline.metadata log = pipeline.log 

json来自pdal的hp https://www.pdal.io/pipeline.html#pipeline ,应该简单地裁剪图像。 但是,在validation过程中会失败并显示错误:

 Traceback (most recent call last): File "/src/test.py", line 69, in <module> pipeline.validate() # check if our JSON and options were good File "/usr/local/lib/python2.7/dist-packages/pdal/pipeline.py", line 42, in validate return self.p.validate() File "pdal/libpdalpython.pyx", line 93, in pdal.libpdalpython.PyPipeline.validate (pdal/libpdalpython.cpp:2639) RuntimeError: Couldn't create filter stage of type 'crop'. 

我已经尝试运行我在网上find的其他小例子,但我一直得到“无法创buildxxtypes的筛选器阶段” – 错误!

我正在从镜像的dockerfile上运行它:pdal / pdal:1.5

再看看你链接的网站。 cropfilter( docs here )使用选项bounds ,而不是dimension来指定边界框。 在PDALdimension是指点数据(X,Y,Z,红色,绿色,蓝色等)的维度。

维度文档在这里