pub enum TerrainError {
Show 16 variants
InvalidDimensions {
width: usize,
height: usize,
},
InvalidCellSize {
size: f64,
},
InvalidAzimuth {
azimuth: f64,
},
InvalidAltitude {
altitude: f64,
},
InvalidObserverPosition {
x: usize,
y: usize,
},
InvalidObserverHeight {
height: f64,
},
InvalidTargetHeight {
height: f64,
},
InvalidRadius {
radius: f64,
},
InvalidThreshold {
threshold: f64,
message: String,
},
InvalidNoData {
message: String,
},
FlowDirectionError {
message: String,
},
WatershedError {
message: String,
},
ViewshedError {
message: String,
},
ComputationError {
message: String,
},
InsufficientMemory {
message: String,
},
CoreError(OxiGdalError),
}Expand description
Errors that can occur during terrain analysis.
Variants§
InvalidDimensions
Invalid DEM dimensions
InvalidCellSize
Invalid cell size
InvalidAzimuth
Invalid azimuth angle for hillshade
InvalidAltitude
Invalid altitude angle for hillshade
InvalidObserverPosition
Invalid observer position for viewshed
InvalidObserverHeight
Invalid observer height
InvalidTargetHeight
Invalid target height
InvalidRadius
Invalid radius for analysis
InvalidThreshold
Invalid threshold value
InvalidNoData
Missing or invalid NoData value
FlowDirectionError
Flow direction algorithm error
WatershedError
Watershed delineation error
ViewshedError
Viewshed computation error
ComputationError
Computation error with generic message
InsufficientMemory
Insufficient memory for operation
CoreError(OxiGdalError)
Core library error
Trait Implementations§
Source§impl Debug for TerrainError
impl Debug for TerrainError
Source§impl Display for TerrainError
impl Display for TerrainError
Source§impl Error for TerrainError
impl Error for TerrainError
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<OxiGdalError> for TerrainError
impl From<OxiGdalError> for TerrainError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TerrainError
impl RefUnwindSafe for TerrainError
impl Send for TerrainError
impl Sync for TerrainError
impl Unpin for TerrainError
impl UnsafeUnpin for TerrainError
impl UnwindSafe for TerrainError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more