LIDAR article in R-Bloggers

Hi,
I've been experimenting with the code from the R-bloggers article from 1 November, and I've hit problems. (I'm really far from being a professional coder.)

A basic outline of my problem...

I started with the code as published and everything seems fine until I run the following line...

ctg <- readLAScatalog("tiles")

... I get the following error ...

WARNING: only 775 bytes until point block when trying to read 10326 bytes into header.vlrs[1].data WARNING: only 0 bytes until point block after reading 2 of 3 vlrs. skipping remaining vlrs ... ERROR: reading 1645314794 bytes of data into header.evlrs[0].data ERROR: cannot open lasreaderlas with file name 'C:\Users\steve\OneDrive\Documents\My R\2024-11-04 IGN LIDAR view of xxx\r\tiles\LHD_FXX_1000_6539_PTS_C_LAMB93_IGN69.copc.laz' Error: LASlib internal error. See message above. Error in !x@PHB[["Global Encoding"]][["WKT"]] : invalid argument type

I'm only using two files ... centred on the l'Aiguille du Midi as in the example .

R version 4.3.2 (2023-10-31 ucrt) -- "Eye Holes"
Platform: x86_64-w64-mingw32/x64 (64-bit)
RStudio: 2024.09.1 Build 394
lidR: version 4.1.2

Am I looking at a problem with the imported data or the code itself?

Many thanks

It seems like your computer is running out of memory before the function can finish running.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.