Struct h3ron_ndarray::array::H3Converter
source · [−]Expand description
convert a 2-d ndarray to h3
Implementations
sourceimpl<'a, T> H3Converter<'a, T>where
T: Sized + PartialEq + Sync + Eq + Hash,
impl<'a, T> H3Converter<'a, T>where
T: Sized + PartialEq + Sync + Eq + Hash,
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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more