Multiple aquisitions in a single catalog #508
Replies: 1 comment 5 replies
-
There is no way to by-pass this error currently. If you have las format 0 (no gpstime, no RGB) with las format 3 (gps time, RGB) they are incompatible because they do not have the same number of attributes and consequently cannot be read as one. You may argue that if we do something like Another option is to give precedence to the first file. If the first file is prf 0 and the second is pdf 3 then the gstime and RGB are simply not loaded from the second file. This actually works by default in So it may be easy to unlock a compatibility mode here by changing if (temp.header[["Point Data Format ID"]] != header[["Point Data Format ID"]] )
stop("Different files have different Point Data Format ID and are incompatible.", call. = FALSE) to if (temp.header[["Point Data Format ID"]] != header[["Point Data Format ID"]] )
warning("Different files have different Point Data Format ID and are incompatible. Some attribute may have been discarded or zeroed", call. = FALSE) But first we need to test the behavior of rlas::read.las(c("pdfx.las", "pdfy.las"))
# and
rlas::read.las(c("pdfy.las", "pdfx.las")) Can you do that? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am currently attempting to run a function on a catalog composed of two different lidar acquisitions read in using:
ctg <- readLAScatalog(c("path/to/aquistions1", "path/to/aquistions2))
When I run catalog_apply() with a custom function to create a chm, I end up with the following error:
This chunk is where the two acquisitions overlap. These acquisitions cover multiple national forests, and I would like to find a way to get around this issue without rewriting the tiles because of the large file size.
Thanks!
Ryan
Beta Was this translation helpful? Give feedback.
All reactions