【问题标题】:PDAL filter doesn't work: Unable to parse pipelinePDAL 过滤器不起作用:无法解析管道
【发布时间】:2019-12-13 09:37:35
【问题描述】:

所以这是我第一次使用 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. 

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

【问题讨论】:

  • 你能展示完整的、完整的代码吗?

标签: python python-3.x pdal


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2017-06-09
    • 2018-03-12
    • 2018-02-04
    • 2022-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-03
    相关资源
    最近更新 更多