Create the extent (xlim, ylim) from the geotransform and dimensions of the grid.
gt_dim_to_extent(x, dim)
geotransform parameters, as per geo_transform0()
dimensions x,y of grid (ncol,nrow)
4-element extent c(xmin,xmax,ymin,ymax)
The extent is c(xmin, xmax, ymin, ymax)
.
gt_dim_to_extent(geo_transform0(c(1, -1), c(0, 10)), c(5, 10))
#> xmin xmin ymax ymax
#> 0 5 0 10