pub struct FileGenerator;Expand description
File generator for creating test files
Implementations§
Source§impl FileGenerator
impl FileGenerator
Sourcepub fn generate_geotiff(path: &Path, width: usize, height: usize) -> Result<()>
pub fn generate_geotiff(path: &Path, width: usize, height: usize) -> Result<()>
Generate a minimal valid single-band Float32 GeoTIFF with WGS84 georeferencing.
The file is written using the oxigdal-geotiff driver so it is a fully
conformant TIFF/GeoTIFF that can be re-opened by any compliant reader.
§Arguments
path– Destination file path.width– Image width in pixels (must be ≥ 1).height– Image height in pixels (must be ≥ 1).
The georeferencing covers a small WGS84 bounding box centred on the prime meridian / equator (lon 0..1°, lat 1..0° — north-up).
Auto Trait Implementations§
impl Freeze for FileGenerator
impl RefUnwindSafe for FileGenerator
impl Send for FileGenerator
impl Sync for FileGenerator
impl Unpin for FileGenerator
impl UnsafeUnpin for FileGenerator
impl UnwindSafe for FileGenerator
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