raster_to_world {affinity} | R Documentation |
World vector from raster object.
Description
Return the world transform defining the raster's offset and resolution.
Usage
raster_to_world(x)
Arguments
x |
raster object (the raster package, extends BasicRaster) |
Details
The world vector is the values xres, yres, xmin, ymax relative to the centre of the top left pixel. "yres" the y-spacing is traditionally negative.
Value
a geotransform vector
Examples
raster_to_world(raster::raster(volcano))
[Package affinity version 0.2.5 Index]