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