pub trait LatLons {
type Iter<'a>: Iterator<Item = (f64, f64)>
where Self: 'a;
// Required method
fn latlons_unchecked<'a>(&'a self) -> Result<Self::Iter<'a>, GribError>;
// Provided method
fn latlons<'a>(
&'a self,
) -> Result<Map<Self::Iter<'a>, fn((f64, f64)) -> (f64, f64)>, GribError> { ... }
}Expand description
A functionality to generate an iterator over latitude/longitude of grid points.
Coordinates are returned as (latitude, longitude) in degrees using
double-precision (f64) values.
Required Associated Types§
Required Methods§
Sourcefn latlons_unchecked<'a>(&'a self) -> Result<Self::Iter<'a>, GribError>
fn latlons_unchecked<'a>(&'a self) -> Result<Self::Iter<'a>, GribError>
Computes and returns an iterator over latitudes and longitudes of grid
points in degrees. Unlike the return values from LatLons::latlons,
the longitude values from thie method do not necessarily fall within
the range [-180°, 180°].
Provided Methods§
Sourcefn latlons<'a>(
&'a self,
) -> Result<Map<Self::Iter<'a>, fn((f64, f64)) -> (f64, f64)>, GribError>
fn latlons<'a>( &'a self, ) -> Result<Map<Self::Iter<'a>, fn((f64, f64)) -> (f64, f64)>, GribError>
Computes and returns an iterator over latitudes and longitudes of grid
points in degrees. The returned longitude values are converted to fall
within the range [-180°, 180°].
The order of lat/lon data of grid points is the same as the order of the
grid point values, defined by the scanning mode
(ScanningMode) in the
data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".