[][src]Struct wkb_raster::Raster

pub struct Raster {
    pub endian: Endian,
    pub version: u16,
    pub scale_x: f64,
    pub scale_y: f64,
    pub ip_x: f64,
    pub ip_y: f64,
    pub skew_x: f64,
    pub skew_y: f64,
    pub srid: i32,
    pub width: u16,
    pub height: u16,
    pub bands: Vec<RasterBand>,
}

Raster data

Fields

endian: Endian

Endinanness, 1:ndr/little endian, 0:xdr/big endian

version: u16

format version (0 for this structure)

scale_x: f64

pixel width in geographical units

scale_y: f64

pixel height in geographical units

ip_x: f64

X ordinate of upper-left pixel's upper-left corner in geographical units

ip_y: f64

Y ordinate of upper-left pixel's upper-left corner in geographical units

skew_x: f64

rotation about Y-axis

skew_y: f64

rotation about X-axis

srid: i32

Spatial reference id

width: u16

Number of pixel columns

height: u16

Number of pixel rows

bands: Vec<RasterBand>

Bands data

Methods

impl Raster[src]

pub fn to_wkb_string(self) -> String[src]

Outputs the raster as a Well-Known-Binary string, ready to be used in SQL statements

pub fn from_wkb_string(string_bytes: &[u8]) -> Result<Self, ParseError>[src]

Trait Implementations

impl Clone for Raster[src]

impl Debug for Raster[src]

impl PartialEq<Raster> for Raster[src]

impl PartialOrd<Raster> for Raster[src]

impl StructuralPartialEq for Raster[src]

Auto Trait Implementations

impl RefUnwindSafe for Raster

impl Send for Raster

impl Sync for Raster

impl Unpin for Raster

impl UnwindSafe for Raster

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.