pub struct SparseArray<N> { /* private fields */ }Expand description
A sparse array in COOordinate format storing the band/row/col value triplets.
of all burned geo::Geometry.
Implementations§
Source§impl<N> SparseArray<N>
impl<N> SparseArray<N>
Sourcepub fn to_frame(&self) -> DataFrame
pub fn to_frame(&self) -> DataFrame
Convert this to a polars::prelude::DataFrame.
Source§impl<N> SparseArray<N>where
N: RasterDtype,
impl<N> SparseArray<N>where
N: RasterDtype,
Sourcepub fn band_names(&self) -> &[String]
pub fn band_names(&self) -> &[String]
Get the band names associated with this array.
Sourcepub fn build_array(&self) -> Array3<N>
pub fn build_array(&self) -> Array3<N>
Materialize a ndarray::Array3 from this. Drops spatial information.
pub fn extent(&self) -> (f64, f64, f64, f64)
pub fn shape(&self) -> (usize, usize)
pub fn resolution(&self) -> (f64, f64)
Sourcepub fn raster_info(&self) -> &RasterInfo
pub fn raster_info(&self) -> &RasterInfo
Get spatial information associated with this array.
pub fn epsg(&self) -> Option<u16>
Trait Implementations§
Source§impl<N> ArrayBuilder for SparseArray<N>where
N: RasterDtype,
impl<N> ArrayBuilder for SparseArray<N>where
N: RasterDtype,
Auto Trait Implementations§
impl<N> Freeze for SparseArray<N>where
N: Freeze,
impl<N> RefUnwindSafe for SparseArray<N>where
N: RefUnwindSafe,
impl<N> Send for SparseArray<N>where
N: Send,
impl<N> Sync for SparseArray<N>where
N: Sync,
impl<N> Unpin for SparseArray<N>where
N: Unpin,
impl<N> UnsafeUnpin for SparseArray<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for SparseArray<N>where
N: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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