【问题标题】:How do I enable LAZ decompression for pdal in a Docker container?如何在 Docker 容器中为 pdal 启用 LAZ 解压缩?
【发布时间】:2022-12-09 03:29:48
【问题描述】:

我正在尝试从 Linux Docker 容器内的 python 脚本解压缩 .laz 文件。

在我的dockerfile.txt 中,我用RUN apt install pdal -y 安装了 pdal。这允许我使用系统调用(例如os.system("pdal info --metadata /mnt/data/example.las"))从我的容器内部运行 pdal。

但是,在 .laz 文件上运行 pdal 时会显示错误。例如,运行系统调用时,

os.system("pdal info --metadata /mnt/data/example.laz")

pdal 返回以下错误:

PDAL: readers.las: Can't read compressed file without LASzip or LAZperf decompression library.

为我的 pdal 安装启用解压缩的最简单方法是什么?是否有必要从源代码构建 pdal 以包含解压缩库,我将在我的 dockerfile 中替换 RUN apt install pdal -y 以实现此目的?

【问题讨论】:

    标签: python docker gis lidar pdal


    【解决方案1】:

    使用@hobu 的一些提示,我通过在我的 dockerfile 中激活一个 conda 环境然后使用 conda run 安装 pdal 来解决这个问题。

    请不要犹豫,分享更简单或更轻量级的解决方案!

    【讨论】:

      猜你喜欢
      • 2019-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-28
      • 2011-03-10
      • 1970-01-01
      • 2017-12-15
      相关资源
      最近更新 更多