#[non_exhaustive]pub enum GeoTiffError {
Tiff(String),
Missing {
what: &'static str,
},
Malformed {
what: &'static str,
reason: String,
},
Unsupported {
what: &'static str,
value: String,
hint: &'static str,
},
Location {
latitude_deg: f64,
longitude_deg: f64,
},
Outside {
latitude_deg: f64,
longitude_deg: f64,
bounds: Bounds,
},
NoSuchPixel {
pixel: Pixel,
width: u32,
height: u32,
},
TooLarge {
what: &'static str,
size: u64,
limit: u64,
},
}Expand description
Why a GeoTIFF elevation file could not be read, or a height not taken from it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tiff(String)
The TIFF decoder refused the file or one of its tiles.
Missing
A tag or key the reader needs is absent.
Malformed
A tag or key holds a value the standard does not allow.
Unsupported
The file is valid but uses something this reader does not read.
Fields
Location
A latitude or longitude that is not a place.
Fields
Outside
The point is not over the raster.
Fields
NoSuchPixel
A pixel past the raster’s last row or column.
TooLarge
The raster or one of its tiles is too large to decode.
Trait Implementations§
Source§impl Clone for GeoTiffError
impl Clone for GeoTiffError
Source§fn clone(&self) -> GeoTiffError
fn clone(&self) -> GeoTiffError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeoTiffError
impl Debug for GeoTiffError
Source§impl Display for GeoTiffError
impl Display for GeoTiffError
Source§impl Error for GeoTiffError
impl Error for GeoTiffError
1.30.0 · 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<TiffError> for GeoTiffError
impl From<TiffError> for GeoTiffError
Source§impl PartialEq for GeoTiffError
impl PartialEq for GeoTiffError
Source§fn eq(&self, other: &GeoTiffError) -> bool
fn eq(&self, other: &GeoTiffError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeoTiffError
Auto Trait Implementations§
impl Freeze for GeoTiffError
impl RefUnwindSafe for GeoTiffError
impl Send for GeoTiffError
impl Sync for GeoTiffError
impl Unpin for GeoTiffError
impl UnsafeUnpin for GeoTiffError
impl UnwindSafe for GeoTiffError
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