geo_world0 {affinity} | R Documentation |
World file parameter creator
Description
Basic function to create a 'world file' as used by various non-geo image formats
Reformat to world vector.
Usage
geo_world0(px, ul, sh = c(0, 0))
geotransform_to_world(x)
Arguments
px |
pixel resolution (XY, Y-negative) |
ul |
grid offset, top-left corner |
sh |
affine shear (XY) |
x |
geotransform parameters, as per |
Details
Note that xmin/xmax are centre_of_cell (of top-left cell) unlike the geotransform which is top-left corner_of_cell. The parameters are otherwise the same, but in a different order.
Value
vector of parameters xres, yskew, xskew, yres, xmin, ymax
world vector, as per geo_world0()
See Also
Examples
geo_world0(px = c(1, -1), ul = c(0, 0))
(gt <- geo_transform0(px = c(1, -1), ul = c(0, 0)))
wf <- geotransform_to_world(gt)
world_to_geotransform(wf)
[Package affinity version 0.2.5 Index]