r-lidar / lidR

Airborne LiDAR data manipulation and visualisation for forestry application
https://CRAN.R-project.org/package=lidR
GNU General Public License v3.0
601 stars 131 forks source link

lidR version 3.2.3 rbind not working #504

Closed rs806 closed 2 years ago

rs806 commented 2 years ago

rbind() doesn't appear to be working in 3.2.3. I am getting this error: 'Error: 'rbind' is not an exported object from 'namespace:lidR'' when trying to combine 2 catalogues.

Jean-Romain commented 2 years ago

Please provide a minimal reproducible example. The following is working to me

library(lidR)
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
ctg = readLAScatalog(LASfile)
rbind(ctg, ctg)
#> Warning: Some tiles seem to overlap each other
#> class       : LAScatalog (v1.2 format 1)
#> extent      : 684766.4, 684993.3, 5017773, 5018007 (xmin, xmax, ymin, ymax)
#> coord. ref. : NAD83 / UTM zone 17N 
#> area        : 106266.3 m²
#> points      : 163.2thousand points
#> density     : 1.5 points/m²
#> num. files  : 2

Created on 2021-11-28 by the reprex package (v2.0.1)

rs806 commented 2 years ago

I made a small subset of my files and it works. It has to be a problem with one of my LAS files that are contained in the catalogue I think. I'll try to figure this out but rbind is working in fact. library(lidR) ctg1a <- readLAScatalog("J:/2018/BlockE_2017/LAS_normalized/") ctg2a <- readLAScatalog("J:/2018/BlockE_2018/LAS_normalized/") ctgba <- rbind(ctg1a, ctg2a)