pub struct H3Converter<'a, T>{ /* private fields */ }
Expand description
convert a 2-d ndarray to h3
Implementations§
Source§impl<'a, T> H3Converter<'a, T>
impl<'a, T> H3Converter<'a, T>
pub fn new( arr: &'a ArrayView2<'a, T>, nodata_value: &'a Option<T>, transform: &'a Transform, axis_order: AxisOrder, ) -> Self
Sourcepub fn nearest_h3_resolution(
&self,
search_mode: ResolutionSearchMode,
) -> Result<u8, Error>
pub fn nearest_h3_resolution( &self, search_mode: ResolutionSearchMode, ) -> Result<u8, Error>
find the h3 resolution closest to the size of a pixel in an array
pub fn to_h3( &self, h3_resolution: u8, compact: bool, ) -> Result<HashMap<&'a T, CompactedCellVec>, Error>
Auto Trait Implementations§
impl<'a, T> Freeze for H3Converter<'a, T>
impl<'a, T> RefUnwindSafe for H3Converter<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for H3Converter<'a, T>
impl<'a, T> Sync for H3Converter<'a, T>
impl<'a, T> Unpin for H3Converter<'a, T>
impl<'a, T> UnwindSafe for H3Converter<'a, T>where
T: RefUnwindSafe,
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
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