Function compute_single_raster_extent

Source
fn compute_single_raster_extent(
    source: &Path,
    target_epsg: u32,
) -> Result<Extent>
Expand description

Compute the extent of a single raster file in the target CRS.

Reads the GeoTransform and size, computes the four corners, and reprojects them to the target EPSG using GDAL’s CoordTransform API.