Convert world vector (centre offset) and x,y spacing to geotransform format.
world_to_geotransform(x)
worldfile parameters, as per geo_world0()
geotransform vector, see geo_transform0()
(wf <- geo_world0(px = c(1, -1), ul = c(0, 0)))
#> xres yskew xskew yres xmin ymax
#> 1.0 0.0 0.0 -1.0 0.5 -0.5
gt <- world_to_geotransform(wf)
geotransform_to_world(gt)
#> xres yskew xskew yres xmin ymax
#> 1.0 0.0 0.0 -1.0 0.5 -0.5