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
587 stars 132 forks source link

Read .copc.laz files #692

Closed ouroukhai closed 1 year ago

ouroukhai commented 1 year ago

Hello, is there a way to read .copc.laz files directly from lidR? The only solution I've found so far is to convert to .laz via PDAL library. Thank you for the time

Jean-Romain commented 1 year ago

This is in development and will be available in septembre.

However a .copc.laz file IS a .laz file and can already be read. Right now we cannot take advantage of the spatial indexing but we can read it as a regular laz file. No conversion is needed. Problems may be related to the size of the file but not the format itself.

wiesehahn commented 1 year ago

That sounds great, does this also allow a more performant plotting experience? E.g. take advantage of the internal octree tiling to render only points in sight.

Jean-Romain commented 1 year ago

take advantage of the internal octree tiling to render only points in sight.

No. But I will maybe work on it later. I have some existing code that may be used for that. Yet doing that with rgl is not straightforward at all. No promise on this one. However what you will be able to do is:

las = readLAS("file.copc.laz", filter = "-max_depth 1")
plot(las)
Jean-Romain commented 9 months ago

The github version of rlas has COPC support. https://github.com/r-lidar/rlas. On CRAN soon.