从LiDAR云中提取描述性信息(.las文件) [英] Extracting descriptive information from a LiDAR cloud (.las files)

查看:1453
本文介绍了从LiDAR云中提取描述性信息(.las文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有.las(激光雷达数据)文件,现在我想知道它的大小,例如它的宽度和高度以公里为单位有多长。



如何检索这些类型的信息?

解决方案

tl; dr:安装libLAS并运行 lasinfo myfile.las



因为他们可能不同意真实的数据范围,所以不值得信任。更可靠的方法是通过读取点本身来计算数据的空间范围。这里有一些免费和开源的方式来计算lasfile的真实范围: .liblas.org /rel =nofollow> libLAS ,通过 lasinfo mylasfile.las


  • 也可以使用 LASzip 支持编译libLAS以读取 .laz 文件


  • PDAL
  • a>,通过 pdal info myfile.las

    • PDAL也可以配置为读取其他类型的pointcloud文件,包括压缩 .laz 和更多


  • 如果您想检查lasfile的范围和其他属性)通过Python进行编程,您可以使用 laspy

  • >

    这些软件项目中的许多软件项目都可以通过系统的软件包管理器获得:


    • Windows: OSGeo4W 包含libLAS,LASzip和PDAL

    • Ubuntu: sudo apt-get安装liblas-bin 将在Ubuntu 14.04,12.04和其他版本上安装 lasinfo
    • OSX:使用自制
    • $ brew install pdal liblas
    • laspy可以通过 pip安装laspy
    • 安装

    I have .las (lidar data) file, now I wanted to know the size of it, for example how long it's width and height in kilometers.

    How is it possible to retrieve these kind of info?

    解决方案

    tl;dr: install libLAS and run lasinfo myfile.las.

    Lasfile headers, in general, shouldn't be trusted since they may not agree with the true data bounds. A more robust approach is to calculate the spatial extents of the data by reading the points themselves. Here's a few free and open-source ways to calculate the true bounds of a lasfile:

    • libLAS, via lasinfo mylasfile.las
      • libLAS can also be compiled with LASzip support to read .laz files
    • PDAL, via pdal info myfile.las
      • PDAL can also be configured to read other types of pointcloud files, including compressed .laz and more
    • If you want to inspect the lasfile's extents (and other properties) programically with Python, you can use laspy

    Many of these software projects are available via package managers for your system:

    • Windows: OSGeo4W includes libLAS, LASzip, and PDAL
    • Ubuntu: sudo apt-get install liblas-bin will install lasinfo on Ubuntu 14.04, 12.04, and others
    • OSX: brew install pdal liblas using Homebrew
    • laspy can be installed via pip install laspy

    这篇关于从LiDAR云中提取描述性信息(.las文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆