PDAL筛选器不工作:无法分析pipelin

2024-05-16 10:30:02 发布

您现在位置:Python中文网/ 问答频道 /正文

所以这是我第一次使用PDAL。我使用python3.6和pdal1.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. 

我检查了网站上的样本代码,它看起来是一样的。只是不知道为什么不行


Tags: testjsonpipelinetyperangemeanmethodfilters
1条回答
网友
1楼 · 发布于 2024-05-16 10:30:02

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"
    ]
}"""

相关问题 更多 >