pub struct DtedTerrain { /* private fields */ }Expand description
Lazy DTED terrain reader backed by raw .dt2 tile bytes.
Heights returned by this reader are orthometric metres, H, above the
EGM96 mean sea level geoid used by DTED/SRTM terrain products. They are not
ellipsoidal heights above the WGS84 reference ellipsoid.
Implementations§
Source§impl DtedTerrain
impl DtedTerrain
Sourcepub fn new(root: impl Into<PathBuf>) -> Self
pub fn new(root: impl Into<PathBuf>) -> Self
Build a terrain reader rooted at a directory containing DTED .dt2
tiles, either directly or under the repository’s block directories.
Sourcepub fn height_m(&mut self, longitude_deg: f64, latitude_deg: f64) -> Result<f64>
pub fn height_m(&mut self, longitude_deg: f64, latitude_deg: f64) -> Result<f64>
Return the bilinearly interpolated orthometric height H in metres at a
longitude-first geodetic position in degrees.
Sourcepub fn height_m_with_options(
&mut self,
longitude_deg: f64,
latitude_deg: f64,
options: DtedLookupOptions,
) -> Result<f64>
pub fn height_m_with_options( &mut self, longitude_deg: f64, latitude_deg: f64, options: DtedLookupOptions, ) -> Result<f64>
Return the orthometric height H in metres at a longitude-first
geodetic position in degrees using explicit lookup options.
Sourcepub fn height_batch(
&mut self,
points: &[(f64, f64)],
options: DtedLookupOptions,
) -> Vec<Result<f64>> ⓘ
pub fn height_batch( &mut self, points: &[(f64, f64)], options: DtedLookupOptions, ) -> Vec<Result<f64>> ⓘ
Evaluate (longitude_deg, latitude_deg) points in order using one
mutable borrow of the resident tile cache.
The tuple order is intentionally longitude-first, matching
Self::height_m_with_options, even though geoid batch helpers use
latitude-first points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DtedTerrain
impl RefUnwindSafe for DtedTerrain
impl Send for DtedTerrain
impl Sync for DtedTerrain
impl Unpin for DtedTerrain
impl UnsafeUnpin for DtedTerrain
impl UnwindSafe for DtedTerrain
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.