pub struct GeodeticFrame {
pub srid: u32,
pub vertical_datum: u16,
pub epoch_year: f32,
pub origin_lat_deg: f64,
pub origin_lon_deg: f64,
pub origin_elevation_mm: i32,
}Expand description
Geodetic Reference Frame descriptor.
Fields§
§srid: u32§vertical_datum: u16§epoch_year: f32§origin_lat_deg: f64§origin_lon_deg: f64§origin_elevation_mm: i32Implementations§
Source§impl GeodeticFrame
impl GeodeticFrame
Sourcepub fn validate_sample(
&self,
sample: &TimestampedGeodeticSample,
allow_forecast: bool,
) -> Result<(), FrameValidationError>
pub fn validate_sample( &self, sample: &TimestampedGeodeticSample, allow_forecast: bool, ) -> Result<(), FrameValidationError>
Validates sample coordinate bounds, CRS, vertical datum, and epoch consistency.
Sourcepub fn transform_and_project_local_mm(
&self,
sample: &TimestampedGeodeticSample,
vertical_transform: Option<&VerticalDatumTransform>,
) -> Result<(i64, i64, i32), FrameValidationError>
pub fn transform_and_project_local_mm( &self, sample: &TimestampedGeodeticSample, vertical_transform: Option<&VerticalDatumTransform>, ) -> Result<(i64, i64, i32), FrameValidationError>
Transforms sample elevation using optional geoid undulation and projects into local tangent mm.
Sourcepub fn project_to_local_mm(&self, coord: &GeodeticCoord) -> (i64, i64, i32)
pub fn project_to_local_mm(&self, coord: &GeodeticCoord) -> (i64, i64, i32)
Projects a geodetic coordinate into local tangent plane coordinates (X, Y in mm) relative to origin.
Sourcepub fn unproject_from_local_mm(&self, x_mm: i64, y_mm: i64) -> (f64, f64)
pub fn unproject_from_local_mm(&self, x_mm: i64, y_mm: i64) -> (f64, f64)
Converts local tangent plane coordinates back to geodetic lon/lat.
Sourcepub fn to_dggs_cell_hash(
&self,
coord: &GeodeticCoord,
resolution_level: u8,
) -> u64
pub fn to_dggs_cell_hash( &self, coord: &GeodeticCoord, resolution_level: u8, ) -> u64
Generates an AusPix / rHEALPix DGGS Cell identifier hash for cross-layer joins.
Sourcepub fn to_spatiotemporal_point(
&self,
coord: &GeodeticCoord,
unix_time_nanos: u64,
velocity_m_s: [f64; 3],
) -> SpatiotemporalPoint
pub fn to_spatiotemporal_point( &self, coord: &GeodeticCoord, unix_time_nanos: u64, velocity_m_s: [f64; 3], ) -> SpatiotemporalPoint
Converts a geodetic coordinate to a QualiaDB SpatiotemporalPoint.
Sourcepub fn evaluate_light_travel_offset_nanos(
&self,
coord_a: &GeodeticCoord,
coord_b: &GeodeticCoord,
) -> u64
pub fn evaluate_light_travel_offset_nanos( &self, coord_a: &GeodeticCoord, coord_b: &GeodeticCoord, ) -> u64
Evaluates the relativistic light-travel offset in nanoseconds between two coordinates.
Sourcepub fn evaluate_proper_time_drift_nanos(
&self,
coord: &GeodeticCoord,
speed_m_s: f64,
duration_seconds: f64,
) -> f64
pub fn evaluate_proper_time_drift_nanos( &self, coord: &GeodeticCoord, speed_m_s: f64, duration_seconds: f64, ) -> f64
Evaluates proper time drift in nanoseconds between a coordinate and sea-level AHD.
Trait Implementations§
Source§impl Clone for GeodeticFrame
impl Clone for GeodeticFrame
impl Copy for GeodeticFrame
Source§impl Debug for GeodeticFrame
impl Debug for GeodeticFrame
Source§impl Default for GeodeticFrame
impl Default for GeodeticFrame
Source§impl PartialEq for GeodeticFrame
impl PartialEq for GeodeticFrame
impl StructuralPartialEq for GeodeticFrame
Auto Trait Implementations§
impl Freeze for GeodeticFrame
impl RefUnwindSafe for GeodeticFrame
impl Send for GeodeticFrame
impl Sync for GeodeticFrame
impl Unpin for GeodeticFrame
impl UnsafeUnpin for GeodeticFrame
impl UnwindSafe for GeodeticFrame
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.