raster_to_world: World vector from raster object.

Description Usage Arguments Details Value Examples

View source: R/grids.R

Description

Return the world transform defining the raster's offset and resolution.

Usage

1

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

1
raster_to_world(raster::raster(volcano))

hypertidy/affinity documentation built on Dec. 20, 2021, 5:54 p.m.