raster_to_gt {affinity}R Documentation

Geotransform from raster object

Description

Return the geotransform defining the raster's offset and resolution.

Usage

raster_to_gt(x)

Arguments

x

raster object (the raster package, extends BasicRaster)

Details

The geotransform vector is six coefficients xmin, xres, yskew, ymax, xskew, yres, values relative to the top left corner of the top left pixel. "yres" the y-spacing is traditionally negative.

Value

a geotransform vector

Examples

raster_to_gt(raster::raster(volcano))

[Package affinity version 0.2.5 Index]