pasture-io 0.5.0

Support for reading and writing point cloud files with pasture
Documentation
1
2
3
4
5
6
7
use anyhow::anyhow;

/// Maps the internal error type of the laz-rs crate to an `anyhow::Error`. Unfortunately, the laz-rs error type
/// does not implement the `Error` trait :(
pub(crate) fn map_laz_err(laz_err: laz::LasZipError) -> anyhow::Error {
    anyhow!("LasZip error: {}", laz_err.to_string())
}