PDAL 过滤器不起作用:无法解析管道

PDAL filter doesn't work: Unable to parse pipeline

所以这是我第一次使用PDAL。我使用 python 3.6 和 PDAL 1.9。

 json_s = """{


        "test.las",
        {
        "type":"filters.outlier",
        "method":"statistical",
        "mean_k":12,
        "multiplier":0.5
        },
        {
        "type":"filters.range",
        "limits":"Classification![7:7]"
        },
        "testOut.las"

}"""

pipeline = pdal.Pipeline(json_s)
count = pipeline.execute()

显示错误,

RuntimeError: JSON pipeline: Unable to parse pipeline. 

我查看了网站上的示例代码,看起来是一样的。就是不知道为什么不行?

PDAL 格式如下所示:

json_s = """{

 "pipeline":[
        "input.las",
        {
          #anything you need
        },

        "output.las"
       {
       }
    ]
}"""

对于你的情况,尝试:

json_s = """{

 "pipeline":[
        "test.las",
        {
        "type":"filters.outlier",
        "method":"statistical",
        "mean_k":12,
        "multiplier":0.5
        },
        {
        "type":"filters.range",
        "limits":"Classification![7:7]"
        },
        "testOut.las"
    ]
}"""