pub enum Error {
Show 17 variants
ClosedWriter,
EmptyCopcFile,
LasError(Error),
LasZipError(LasZipError),
WrongCopcExtension,
InvalidResolution(f64),
Io(Error),
CopcInfoVlrNotFound,
EptHierarchyVlrNotFound,
LasZipVlrNotFound,
EmptyIterator,
PointNotAddedToAnyNode,
InvalidBounds(Bounds),
InvalidPoint(PointAddError),
InvalidNodeSize,
InvalidCrs(CrsError),
InvalidEPSGCode(u16),
}
Expand description
crate specific Error enum
Variants§
ClosedWriter
When trying to add points to a writer that already been closed
EmptyCopcFile
When trying to close an empty copc file
LasError(Error)
LasZipError(LasZipError)
WrongCopcExtension
The input file-path does not end in .copc.laz
InvalidResolution(f64)
The requested resolution is either negative or not normal
Io(Error)
CopcInfoVlrNotFound
The Copc Info vlr was not found, octree can not be built
EptHierarchyVlrNotFound
The Ept hierarchy evlr was not found, octree can not be built
LasZipVlrNotFound
The laszip vlr was not found, the points cannot be decompressed.
EmptyIterator
The provided iterator for writing points to copc did not contain any points
PointNotAddedToAnyNode
Should not be possible
InvalidBounds(Bounds)
If the bounds in the passed in header is invalid
InvalidPoint(PointAddError)
If a point fails to be added to the copc
InvalidNodeSize
If a copc writer is created with invalid max or min node cound bounds
InvalidCrs(CrsError)
InvalidEPSGCode(u16)
Unsupported epsg
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LasZipError> for Error
impl From<LasZipError> for Error
Source§fn from(source: LasZipError) -> Self
fn from(source: LasZipError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more