pub enum GridCellEncoding {
Grid,
PixelIsArea,
PixelIsPoint,
}Expand description
Interpretation of how each grid sample relates to the cell boundary.
Corresponds to the grid_cell_encoding column of
gpkg_2d_gridded_coverage_ancillary (OGC §F.7).
Variants§
Grid
"grid-value-is-center" — the value represents the cell centre.
PixelIsArea
"grid-value-is-area" — the value is an average over the entire cell.
PixelIsPoint
"grid-value-is-corner" — the value is located at the cell corner.
Implementations§
Trait Implementations§
Source§impl Clone for GridCellEncoding
impl Clone for GridCellEncoding
Source§fn clone(&self) -> GridCellEncoding
fn clone(&self) -> GridCellEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridCellEncoding
impl Debug for GridCellEncoding
Source§impl FromStr for GridCellEncoding
impl FromStr for GridCellEncoding
Source§type Err = Infallible
type Err = Infallible
The parse is infallible: unrecognised strings map to the default
(GridCellEncoding::Grid) per OGC §F.7.
Source§impl PartialEq for GridCellEncoding
impl PartialEq for GridCellEncoding
Source§fn eq(&self, other: &GridCellEncoding) -> bool
fn eq(&self, other: &GridCellEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridCellEncoding
Auto Trait Implementations§
impl Freeze for GridCellEncoding
impl RefUnwindSafe for GridCellEncoding
impl Send for GridCellEncoding
impl Sync for GridCellEncoding
impl Unpin for GridCellEncoding
impl UnsafeUnpin for GridCellEncoding
impl UnwindSafe for GridCellEncoding
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