georaster
Rust library for accessing geospatial raster images.
Usage examples
Read pixel value from GeoTIFF:
let img_file = new;
let mut tiff = open.unwrap;
match tiff.read_pixel ;
Extract part of GeoTIFF into a PNG:
let img_file = new;
let mut tiff = open.unwrap;
let = ;
let mut img = new;
for in tiff.pixels
img.save.unwrap;
Running the examples
Download test data:
cd data
make
cargo run --example info data/tiff/N265E425.tif
cargo run --example pixel data/tiff/N265E425.tif 2550 3050
cargo run --example crop data/tiff/N265E425.tif 100x100+2500+3000 dtm.png
cargo run --example img2ascii data/tiff/sat.tif
cargo run --example http_dtm