rasterfakers 0.2.0

A Rust library and CLI tool to generate fake GeoTIFF files for testing and fixtures.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rasterfakers::FakeGeoTiffBuilder;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let geotiff = FakeGeoTiffBuilder::new()
        .dimensions(256, 256)?
        .bands(1)?
        .projection("EPSG:4326")
        .output_path("basic_output.tiff")
        .build::<f32>()?;

    geotiff.write()?;
    println!("Basic GeoTIFF generated successfully!");
    Ok(())
}