从LiDAR云中提取描述性信息(.las文件) [英] Extracting descriptive information from a LiDAR cloud (.las files)
问题描述
我有.las(激光雷达数据)文件,现在我想知道它的大小,例如它的宽度和高度以公里为单位有多长。
如何检索这些类型的信息?
tl; dr:安装libLAS并运行 lasinfo myfile.las
。
因为他们可能不同意真实的数据范围,所以不值得信任。更可靠的方法是通过读取点本身来计算数据的空间范围。这里有一些免费和开源的方式来计算lasfile的真实范围: .liblas.org /rel =nofollow> libLAS ,通过 lasinfo mylasfile.las
.laz
文件
pdal info myfile.las
.laz
和更多
>
这些软件项目中的许多软件项目都可以通过系统的软件包管理器获得:
- 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
- libLAS can also be compiled with LASzip support to read
- PDAL, via
pdal info myfile.las
- PDAL can also be configured to read other types of pointcloud files, including compressed
.laz
and more
- PDAL can also be configured to read other types of pointcloud files, including compressed
- 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 installlasinfo
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屋!