pub struct Datum {
pub ellipsoid: Ellipsoid,
pub to_wgs84: DatumToWgs84,
}Expand description
A geodetic datum, defined by a reference ellipsoid and its relationship to WGS84.
Fields§
§ellipsoid: EllipsoidThe reference ellipsoid.
to_wgs84: DatumToWgs84Explicit relationship from this datum to WGS84.
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 has_known_wgs84_transform(&self) -> bool
pub fn has_known_wgs84_transform(&self) -> bool
Returns true if this datum has a known path to WGS84.
Sourcepub fn uses_grid_shift(&self) -> bool
pub fn uses_grid_shift(&self) -> bool
Returns true if this datum’s WGS84 path uses one or more horizontal grids.
Sourcepub fn helmert_to_wgs84(&self) -> Option<&HelmertParams>
pub fn helmert_to_wgs84(&self) -> Option<&HelmertParams>
Return the Helmert parameters for this datum’s path to WGS84, when available.
pub fn approximate_helmert_to(&self, target: &Datum) -> Option<HelmertParams>
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