pub enum GeoidModel {
Egm96,
Egm2008,
}Expand description
Identifier for a known global geoid model.
EGM96 (15’×15’ grid, ~5 cm RMS over land) and EGM2008 (1’×1’ or 2.5’×2.5’ grids, ~1 cm RMS over land) are the most widely used global models.
Variants§
Implementations§
Source§impl GeoidModel
impl GeoidModel
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Returns the canonical short display name ("EGM96", "EGM2008").
Sourcepub fn default_grid_spacing_deg(&self) -> f64
pub fn default_grid_spacing_deg(&self) -> f64
Returns a reasonable default grid spacing in degrees.
Both models support multiple grid resolutions; this returns a coarse value (0.25° = 15’) suitable for synthetic-grid tests and for sizing expectations when no metadata is provided.
Sourcepub fn approx_accuracy_cm(&self) -> f64
pub fn approx_accuracy_cm(&self) -> f64
Returns the approximate accuracy of the model over land (centimetres).
Trait Implementations§
Source§impl Clone for GeoidModel
impl Clone for GeoidModel
Source§fn clone(&self) -> GeoidModel
fn clone(&self) -> GeoidModel
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 moreimpl Copy for GeoidModel
Source§impl Debug for GeoidModel
impl Debug for GeoidModel
Source§impl Display for GeoidModel
impl Display for GeoidModel
impl Eq for GeoidModel
Source§impl Hash for GeoidModel
impl Hash for GeoidModel
Source§impl PartialEq for GeoidModel
impl PartialEq for GeoidModel
impl StructuralPartialEq for GeoidModel
Auto Trait Implementations§
impl Freeze for GeoidModel
impl RefUnwindSafe for GeoidModel
impl Send for GeoidModel
impl Sync for GeoidModel
impl Unpin for GeoidModel
impl UnsafeUnpin for GeoidModel
impl UnwindSafe for GeoidModel
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.