如何使用Python中的PDAL包将.las文件转换为.pcd文件

时间:2018-03-12 10:58:16

标签: python

我正在使用此命令将.las转换为.pcd格式pdal translate input.las output.pcd。但是我在使用此命令时遇到错误PDAL: Couldn't create writer stage of type 'writers.pcd'.请帮助我解决此问题。提前致谢

1 个答案:

答案 0 :(得分:0)

  • 首先,请按照 PDAL 网站上的快速入门说明进行操作,以确保您的环境已正确设置并安装了所有软件包: https://pdal.io/quickstart.html

  • 然后,您可以在名为“pipeline.json”的文件中编写管道 如下:

[
  {
    "type": "readers.las",
    "filename": "D:\\myLAS\\myFile.las"
  },
  {
    "type": "writers.pcd",
    "compression": "binary",
    "order": "X,Y,Z,intensity",
    "keep_unspecified": "false",
    "filename": "D:\\myPCD\\myFile.pcd"
  }
]

pdal pipeline pipeline.json