Questions tagged [lidr]

R package for Airborne LiDAR Data Manipulation and Visualization in Forestry Applications

Airborne LiDAR (Light Detection and Ranging) interface in R for data manipulation and visualization. Read/write 'las' and 'laz' files, computation of metrics in area based approach, point filtering, artificial point reduction, classification from geographic data, normalization, individual tree segmentation and other manipulations.

41 questions
4
votes
2 answers

How to convert lidar format las to data.frame?

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 <-…
psysky
  • 3,037
  • 5
  • 28
  • 64
3
votes
2 answers

How to read many lidar files (.las) at once and combine them into one dataframe in R

I have folder where many lidar(.las) files. It looks like library(rgdal) library(raster) library(tmaptools) library(tmap) library(lidR) library(RStoolbox) las=readLAS("C:/1/078-638.las") las1=readLAS("C:/1/082-628.las") las2=.... so if more than…
psysky
  • 3,037
  • 5
  • 28
  • 64
2
votes
1 answer

How to get a circular subset of a las-dataset with specific area using lidR::clip_circle()?

To get a circular subset of a las-dataset with specific area, I would like to use lidR::clip_circular(). To do so, I first calculate the central point of my las-dataset, then I define the radius I want to use, to get a subset of exactly 500m^2 from…
ExploreR
  • 313
  • 4
  • 15
2
votes
1 answer

Compute eigenvalues for large point clouds as quickly as possible with R

I have large point clouds (each with several million points) and want to compute geometric attributes for all points. In order to do so, I need to calculate eigenvalues. How can I do this as quickly as possible? My data is stored in *.las files and…
Zoe
  • 906
  • 4
  • 15
2
votes
0 answers

Scale bar when plotting a point cloud with lidR

How do I get a scalebar within my plot when plotting a point cloud from a .las file. I have a simple script below to plot my data using the lidR package but I want to add a scale bar and can't find how to do so. las <-…
Selena Chavez
  • 139
  • 2
  • 10
2
votes
1 answer

How to process a LAScatalog in parallel with lidR in R

I used to process a LIDAR catalog with the following code (using the LAScatalog processing engine from the great lidR package): library(lidR) lasdir <- "D:\\LAS\\" output <- "D:\\LAS\\PRODUCTS\\" epsg = "+init=epsg:25829" res = 1 no_cores <-…
1
vote
1 answer

lidr LAScatalog manual classification

I have a bit of an unusual LAS tiles. I know that all my points represent "ground". The LAS files were already pre-processed and classified. But all the points are Class = 8L. I need to reclassify all of them to 2L to be able to work with them as…
matej
  • 15
  • 6
1
vote
1 answer

Is there an R function for finding if a .LAZ file is contained in a .SHP polygon

I have a folder in which I have several thousand .LAZ files and I would like to select those that are contained in the .SHP polygon. Can it be programmed in R, e.g. by adding a given name to .LAZ files. Loading so many files into a GIS program is…
1
vote
1 answer

Error: Invalid function provided as algorithm while using Segment_trees function in lidr in R

I am trying to use the ForestTools::mcws() function and segment_trees in R to segment a LiDAR point cloud using a CHM raster. However, when I try to run the function with the segment_trees() function from the lidR package, I get the following error…
Purple_Ad
  • 65
  • 6
1
vote
1 answer

Subscript out of bounds error with custom function in lidR::catalog_apply()

I am attempting to create a raster of pixel metrics for a large collection of lidar data using the lidR:: package. I want to first remove any outlier points in the point cloud, normalize the point cloud to a digital terrain model, and finally,…
Sean McKenzie
  • 707
  • 3
  • 13
1
vote
1 answer

How to save my dtm generated from LAS point cloud as tiff file in lidR package?

I am trying to save the dtm generated using plot command. The dtm has been generated from las using lidR using this code dtm1_tin <- rasterize_terrain(las1, res = 1, algorithm = tin()) plot_dtm3d(dtm1_tin, bg = "white") # Trying to save my plot…
1
vote
1 answer

How to solve Error installing package lidR in R?

I am using amazon sagemaker notebook instance. And i am trying to install lidR package into R notebook but i got following errors. How can i. Solve it? Code; install.packages("lidR") Error; installing the dependencies ‘units’, ‘lwgeom’, ‘raster’,…
Sevval Kahraman
  • 1,185
  • 3
  • 10
  • 37
1
vote
0 answers

Trying to Load LAS file in R

My apologies if this question is a little rudimentary - I'm intermediately experienced in troubleshooting with R, but this issue is persistent, possibly because I'm a little new to R's spatial packages. I'm trying to use R to process lidar data. I…
O_Paris
  • 11
  • 1
1
vote
1 answer

Can't install lidR package on linux Redhat

Trying to use the lidR package on RStudio Server and I have been unable to install the dependency 'rlas'. I added some variable to define the Makevars shown here: CXX14 = g++ -std=c++1y But still get errors. My console actually fills up beyond the…
Mxblsdl
  • 484
  • 6
  • 16
1
vote
1 answer

Making nice GIF from LiDAR point cloud with R ( using lidR package ?)

Could someone point me to some R code to make programmatically nice GIF from LiDAR point clouds like the rotating one in the vignette of the LidR package (https://www.rdocumentation.org/packages/lidR/versions/3.0.3) ?
Adrien
  • 157
  • 8
1
2 3