pub enum CopcError {
Io(Error),
Las(Error),
Laz(LasZipError),
CopcInfoNotFound,
LazVlrNotFound,
TruncatedHierarchyPage {
offset: u64,
},
NodeNotFound(VoxelKey),
PartialDecode(Fields),
ByteSource(Box<dyn Error + Send + Sync>),
}Expand description
Errors that can occur when reading a COPC file.
Variants§
Io(Error)
I/O error from the underlying byte source.
Las(Error)
Error parsing LAS header or VLR data.
Laz(LasZipError)
Error during LAZ decompression.
CopcInfoNotFound
The required COPC info VLR was not found.
LazVlrNotFound
The required LAZ VLR was not found.
TruncatedHierarchyPage
A hierarchy page was shorter than expected.
NodeNotFound(VoxelKey)
The requested node is not in the loaded hierarchy.
PartialDecode(Fields)
Attempted to materialize las::Point values from a chunk that was
decoded with a partial field mask.
A partially-decoded chunk leaves skipped field bytes as zeros in the
backing buffer, so producing Point values from it would silently
yield wrong data for those fields. Refetch the chunk with Fields::ALL
or use the column-level accessors on Chunk instead.
ByteSource(Box<dyn Error + Send + Sync>)
Custom error from a ByteSource implementation.
Trait Implementations§
Source§impl Error for CopcError
impl Error for CopcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()