gadomski / las-rs

Read and write ASPRS las files, Rust edition.
MIT License
73 stars 32 forks source link

Pure Rust LAZ #17

Closed tmontaigu closed 5 years ago

tmontaigu commented 5 years ago

I wanted to try porting laszip to Rust, so here it is,

Add LAZ support using laz-rs as an optional feature/dependency --features laz

For now only point format 0,1,2,3 and extra bytes are supported (so no Extended points nor points with Waveform), but they will eventualy be implemented.

One notable change is that the read method of the Reader struct returns Option<Result<Point>> instead of Result<Option<Point>>.

So when reading past the last point the function returns None and not Ok(None) this is in my opinion more natural and integrates better with the Iterator trait.