Struct geotiff::tiff::TIFF [−][src]
The basic TIFF struct. This includes the header (specifying byte order and IFD offsets) as well as all the image file directories (IFDs) plus image data.
The image data has a size of width * length * bytes_per_sample.
Fields
ifds: Vec<IFD>
image_data: Vec<Vec<Vec<usize>>>
Implementations
impl TIFF
[src]
The GeoTIFF library reads .tiff
files.
It is primarily used within a routing application that needs to parse digital elevation models. As such, other use cases are NOT tested (for now).
pub fn open(filename: &str) -> Result<Box<TIFF>>
[src]
Opens a .tiff
file at the location indicated by filename
.
pub fn get_value_at(&self, lon: usize, lat: usize) -> usize
[src]
Gets the value at a given coordinate (in pixels).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TIFF
[src]
impl Send for TIFF
[src]
impl Sync for TIFF
[src]
impl Unpin for TIFF
[src]
impl UnwindSafe for TIFF
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,