Crate copc_rs

Source
Expand description

Library for reading Cloud Optimized Point Cloud (COPC) data.

Usage example:

use copc_rs::{BoundsSelection, CopcReader, LodSelection};

fn main() -> laz::Result<()> {
    let laz_file = BufReader::new(File::open("autzen-classified.copc.laz")?);
    let mut copc_reader = CopcReader::open(laz_file)?;
    for point in copc_reader
        .points(LodSelection::Level(0), BoundsSelection::All)
        .unwrap()
    {
        println!("{}, {}, {}", point.x, point.y, point.z);
    }
    Ok(())
}

Modules§

header
Raw file metadata.

Structs§

Bounds
3D bounding box
CopcReader
COPC file reader
PointIter
LasZip point iterator

Enums§

BoundsSelection
Select points within bounds
LodSelection
Limits the octree levels to be queried in order to have a point cloud with the requested resolution.