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.
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 theReader
struct returnsOption<Result<Point>>
instead ofResult<Option<Point>>
.So when reading past the last point the function returns
None
and notOk(None)
this is in my opinion more natural and integrates better with theIterator
trait.