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
582 stars 130 forks source link

opt_chunk_size #769

Closed THLAB35 closed 1 month ago

THLAB35 commented 1 month ago

Hello,

I encounter a problem during a step in the .las data processing process; can you help me? Sincerely

opt_chunk_size(M24015_SYNERGIS_ETU_ENV_las) <- 500 Error in opt_chunk_size<-(*tmp*, value = 500) : no slot of name "chunk_options" for this object of class "LAS"

Thibault

Jean-Romain commented 1 month ago

opt_chunk_size(ctg) = 500 applies on a LAScatalog not a LAS. The point cloud, once loaded it processed as a whole.

THLAB35 commented 1 month ago

Thank you; It's my mistake

I encounter the following problem: Do you have any possible solutions?

tin <- rasterize_terrain(las_A, res = 1, algorithm = tin()) Processing [==>-------------------------------------------------------------------] 4% (1/27) eta: 10mError: [writeRaster] file exists. You can use 'overwrite=TRUE' to overwrite it

Jean-Romain commented 1 month ago

See https://gis.stackexchange.com/questions/463618/overwriting-files-in-function-pixel-metrics