所以这是我第一次使用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. 我在网站上检查了示例代码,它看起来是一样的。只是不知道为什么它不能工作?
发布于 2019-08-06 04:37:58
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"
]
}"""https://stackoverflow.com/questions/57365774
复制相似问题