Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pka/copc-rs
COPC reader
https://github.com/pka/copc-rs
Last synced: 3 months ago
JSON representation
COPC reader
- Host: GitHub
- URL: https://github.com/pka/copc-rs
- Owner: pka
- License: apache-2.0
- Created: 2022-08-08T22:19:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T08:14:13.000Z (over 1 year ago)
- Last Synced: 2024-10-03T10:46:16.919Z (4 months ago)
- Language: Rust
- Size: 130 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-georust - copc-rs - COPC reader. (Watchlist)
README
# copc-rs
[![crates.io version](https://img.shields.io/crates/v/copc-rs.svg)](https://crates.io/crates/copc-rs)
[![docs.rs docs](https://docs.rs/copc-rs/badge.svg)](https://docs.rs/copc-rs)copc-rs is a library for reading Cloud Optimized Point Cloud ([COPC](https://copc.io/)) data.
## Usage example
```rust
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);
}
```Run an example:
```
cargo run --example copc_http
```## Credits
This library depends heavily on the work of Thomas Montaigu (@tmontaigu) and Pete Gadomski (@gadomski).