2 unstable releases
0.2.0 | Oct 21, 2022 |
---|---|
0.1.0 | Aug 10, 2022 |
#99 in Geospatial
52KB
899 lines
copc-rs
copc-rs is a library for reading Cloud Optimized Point Cloud (COPC) data.
Usage example
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)?.take(5) {
println!("Point coordinates: ({}, {}, {})", point.x, point.y, point.z);
}
lib.rs
:
Library for reading Cloud Optimized Point Cloud (COPC) data.
Usage example:
use copc_rs::{BoundsSelection, CopcReader, LodSelection};
# use std::fs::File;
# use std::io::BufReader;
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(())
}
Dependencies
~3.5MB
~69K SLoC