Struct geotiff::tiff::TIFF[][src]

pub struct TIFF {
    pub ifds: Vec<IFD>,
    pub image_data: Vec<Vec<Vec<usize>>>,
}

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

impl Debug for TIFF[src]

impl Display for TIFF[src]

Overwrite default display function.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.