Lidar data is simply 3d coordinates, usually in las
file format. Сontent example
library(rgdal)
library(raster)
library(tmap)
library(tmaptools)
library(lidR)
library(RStoolbox)
las_cat <- readLAScatalog("C:/1/078-638.las")
summary(las_cat)
opt_chunk_size(las_cat) <- 500
plot(las_cat, chunk_pattern = TRUE)
las_cat
#> class : LAScatalog (v1.2 format 1)
#> extent : 637999, 638240.5, 6077999, 6079999 (xmin, xmax, ymin, ymax)
#> coord. ref. : NA
#> area : 483081.1 units²
#> points : 3.68 million points
#> density : 7.6 points/units²
#> density : 5.6 pulses/units²
#> num. files : 1
Is there a way to get point coordinates in a typical data.frame
for R?
As an example we can use data from this http://data.wvgis.wvu.edu/elevation/.
Also, is there a way to get the angle of reflection, the number of reflections in the data.frame
from the lidar file?
Please find below one possible solution to get a
data.table,data.frame
with all the information. You can useas.data.frame()
to get a puredata.frame
but adata.table
is adata.frame
Reprex
NB: I used a
.las
dataset built in thelidR
library as it is more convenient.lidR
Created on 2022-03-18 by the reprex package (v2.0.1)