
Map an output-chunk window on out_grid to the minimal input window required on in_grid.
cross_grid_window.RdSame CRS: exact affine math (north-up grids, so window corners are
extremal). Different CRS: bounds are transformed with
gdalraster::transform_bounds(), which densifies the boundary so
curved edges (e.g. parallels in a transverse Mercator zone) cannot
shrink the window; a safety margin of garry_opt("window_margin")
input cells is then added.