pub struct Datum {
pub ellipsoid: Ellipsoid,
pub to_wgs84: Option<HelmertParams>,
}Expand description
A geodetic datum, defined by a reference ellipsoid and its relationship to WGS84.
Fields§
§ellipsoid: EllipsoidThe reference ellipsoid.
to_wgs84: Option<HelmertParams>7-parameter Helmert transformation from this datum to WGS84.
None means this datum is WGS84 (or is functionally identical, e.g. NAD83).
Implementations§
Source§impl Datum
impl Datum
Sourcepub fn is_wgs84_compatible(&self) -> bool
pub fn is_wgs84_compatible(&self) -> bool
Returns true if this datum is WGS84 or functionally identical (no Helmert shift needed).
Sourcepub fn same_datum(&self, other: &Datum) -> bool
pub fn same_datum(&self, other: &Datum) -> bool
Returns true if two datums are the same (same ellipsoid, same Helmert parameters).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Datum
impl RefUnwindSafe for Datum
impl Send for Datum
impl Sync for Datum
impl Unpin for Datum
impl UnsafeUnpin for Datum
impl UnwindSafe for Datum
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<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