pub struct VerticalCrsDef { /* private fields */ }Expand description
Definition of an explicit vertical CRS component.
Implementations§
Source§impl VerticalCrsDef
impl VerticalCrsDef
Sourcepub fn ellipsoidal_height(
epsg: u32,
datum: Datum,
linear_unit: LinearUnit,
name: &'static str,
) -> Self
pub fn ellipsoidal_height( epsg: u32, datum: Datum, linear_unit: LinearUnit, name: &'static str, ) -> Self
Construct an ellipsoidal-height vertical CRS tied to a geodetic datum.
Construct a gravity-related vertical CRS by vertical datum EPSG code.
pub const fn epsg(&self) -> u32
pub const fn kind(&self) -> &VerticalCrsKind
pub const fn linear_unit(&self) -> LinearUnit
pub const fn linear_unit_to_meter(&self) -> f64
pub const fn name(&self) -> &'static str
pub fn semantically_equivalent(&self, other: &Self) -> bool
Sourcepub fn same_vertical_reference(&self, other: &Self) -> bool
pub fn same_vertical_reference(&self, other: &Self) -> bool
Returns true when two vertical CRS definitions use the same vertical reference frame, ignoring the coordinate unit.
pub fn vertical_datum_epsg(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for VerticalCrsDef
impl Clone for VerticalCrsDef
Source§fn clone(&self) -> VerticalCrsDef
fn clone(&self) -> VerticalCrsDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerticalCrsDef
impl RefUnwindSafe for VerticalCrsDef
impl Send for VerticalCrsDef
impl Sync for VerticalCrsDef
impl Unpin for VerticalCrsDef
impl UnsafeUnpin for VerticalCrsDef
impl UnwindSafe for VerticalCrsDef
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