pub struct DistortionRaster {
pub lon_min: f64,
pub lon_max: f64,
pub lat_min: f64,
pub lat_max: f64,
pub ncols: usize,
pub nrows: usize,
pub cells: Vec<TissotCell>,
}Expand description
A distortion-field raster: Tissot parameters on a regular lon/lat grid.
Fields§
§lon_min: f64§lon_max: f64§lat_min: f64§lat_max: f64§ncols: usize§nrows: usize§cells: Vec<TissotCell>Flattened row-major grid of TissotCell (len = nrows * ncols).
Implementations§
Source§impl DistortionRaster
impl DistortionRaster
Sourcepub fn compute(
pj: &Pj,
lon_min: f64,
lat_min: f64,
lon_max: f64,
lat_max: f64,
step_deg: f64,
) -> Self
pub fn compute( pj: &Pj, lon_min: f64, lat_min: f64, lon_max: f64, lat_max: f64, step_deg: f64, ) -> Self
Compute a distortion raster for the given projection over the given extent.
All lon/lat values are in degrees. The raster has:
ncols = ((lon_max - lon_min) / step_deg).ceil() as usize + 1nrows = ((lat_max - lat_min) / step_deg).ceil() as usize + 1
Auto Trait Implementations§
impl Freeze for DistortionRaster
impl RefUnwindSafe for DistortionRaster
impl Send for DistortionRaster
impl Sync for DistortionRaster
impl Unpin for DistortionRaster
impl UnsafeUnpin for DistortionRaster
impl UnwindSafe for DistortionRaster
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