Create the geotransform (see geo_transform0()
) from extent and dimension.
extent_dim_to_gt(x, dim)
x | extent parameters, c(xmin,xmax,ymin,ymax) |
---|---|
dim | dimensions x,y of grid (ncol,nrow) |
6-element geo_transform0()
The dimension is always ncol, nrow.
#> xmin xres yskew ymax xskew yres #> 0 1 0 10 0 -1