Closed mfbehrens99 closed 2 months ago
A helper function like this definitively fits into georaster. PR very welcome!
In order to handle locations I can either:
I think it is okay of a geotiff library to depend on a tiff and a geo library
I'm for defining our own struct like:
pub struct Coordinate
{
pub x: f64,
pub y: f64,
}
impl From<(f64, f64)> for Coordinate {
fn from(coords: (f64, f64)) -> Self {
Coordinate {
x: coords.0,
y: coords.1,
}
}
}
impl From<[f64; 2]> for Coordinate {
fn from(coords: [f64; 2]) -> Self {
Coordinate {
x: coords[0],
y: coords[1],
}
}
}
This is the same as rust-geo, which I don't want to have as a dependency for now, since it's 2D vector only.
I made a simple implementation to get the value at a specific coordinate:
Is this wanted in this crate?
Would like to contribute!
A little bit of misc like interpolating dem values would also be nice to have (maybe in a geotiff_dem wrapper to not pollute the geotiff or guide people to interpolate on rgb data)