copc-rs
copc-rs is a rust library for reading and writing Cloud Optimized Point Cloud (COPC) data. It utilizes the las and laz crates heavily and tries to offer a similiar API to las.
Usage examples
Reader
let mut copc_reader = from_path?;
for point in copc_reader.points?.take
Full example with bounds selection:
use ;
Run an example:
cargo run --example copc_http
Writer [*]
use CopcWriter;
use Reader;
Writing is still a WIP
Writing of the octree structure seem to work, so spatial queries in full resolution on copc-rs written files should be good. BUT the octree levels does not yet contain a similar point distribution as the whole cloud so results from resolution queries on copc-rs written files are wrong. This means the written files will look bad in viewers.
I will look into it when I find time, for now I only need full resolution spatial queries in my current project anyway.
-yvind
Credits
This library depends heavily on the work of Thomas Montaigu (@tmontaigu) and Pete Gadomski (@gadomski), the authors of the laz and las crates.