从 LiDAR 云中提取描述性信息(.las 文件)
我有 .las(激光雷达数据)文件,现在我想知道它的大小,例如它的宽度和高度有多长(以公里为单位)。
如何检索此类信息?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
tl;dr:安装 libLAS 并运行 lasinfo myfile.las。
一般来说,Lasfile 标头不应被信任,因为它们可能与真实的数据范围不一致。更稳健的方法是通过读取点本身来计算数据的空间范围。以下是一些计算 lasfile 真实边界的免费开源方法:
lasinfo mylasfile.las
.laz
文件< /里>pdal info myfile.las
.laz
等其中许多软件项目都可以通过您系统的包管理器获得:
sudo apt-get install liblas-bin
将安装 < Ubuntu 14.04、12.04 和其他brew install pdal liblas
pip install laspy
安装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:
lasinfo mylasfile.las
.laz
filespdal info myfile.las
.laz
and moreMany of these software projects are available via package managers for your system:
sudo apt-get install liblas-bin
will installlasinfo
on Ubuntu 14.04, 12.04, and othersbrew install pdal liblas
using Homebrewpip install laspy
您可以使用
lastools
中的lasinfo
实用程序,它将返回 .las 标头信息(包括范围):http://www.cs.unc.edu/~isenburg/lastools/
中的
将提供相同的信息:lasinfo
模块SAGA GIShttp://www.saga-gis.org/
You can use the
lasinfo
utility fromlastools
which will return the .las header information (including the extent):http://www.cs.unc.edu/~isenburg/lastools/
The
lasinfo
module inSAGA GIS
will provide the same information:http://www.saga-gis.org/
最好的办法是使用特定的软件来找出该激光雷达文件的范围。
您可能可以做到的另一种方法是查看文件的标头部分(如果您有原始文件),它也必须说明范围。
否则,请与数据提供商联系(如果您无法以任何其他方式找出范围)。他可能拥有该软件并且知道您的数据集的扩展名。
乔治
You best bet is to use a specific software to find out the extent of this lidar file.
Another way you can probably do it is to look at the header section of the file (if you have the raw file), which must state the extent as well.
Otherwise, talk to the data provider (if you can´t find out the extent any other way). He probably has the software and knows the extension of your dataset.
George
对于Fusion,一个选项是命令行
Catalog
检索描述性统计数据。假设 Fusion 安装在
c:\fusion
目录下,las 文件存储在c:\lidar\point_cloud.las
中。编写并运行:输出示例为:
添加开关以获取更多信息或使命令适应特定需求(例如,开关“覆盖范围”将显示整个激光雷达云的标称覆盖区域)。
With Fusion, an option is the command line
Catalog
to retrieve descriptive statistics.Suppose Fusion is installed under the directory
c:\fusion
and the las file is stored inc:\lidar\point_cloud.las
. Write and run:An output example is:
Add switches to obtain more information or to adapt the command to specific needs (e.g.; switch 'coverage' will show nominal coverage area of the entire lidar cloud).