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?
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:
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 install lasinfo
on Ubuntu 14.04, 12.04, and othersbrew install pdal liblas
using Homebrewpip install laspy
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
You can use the lasinfo
utility from lastools
which will return the .las header information (including the extent):
http://www.cs.unc.edu/~isenburg/lastools/
The lasinfo
module in SAGA GIS
will provide the same information:
http://www.saga-gis.org/
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 in c:\lidar\point_cloud.las
. Write and run:
c:\fusion\catalog c:\lidar\point_cloud.las c:\lidar\point_cloud
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).