rasterio_to_sfio: The sf/stars RasterIO list

Description Usage Arguments Details Value Examples

View source: R/grids.R

Description

We create the list as used by the stars/sf GDAL IO function 'gdal_read(, RasterIO_parameters)'.

Usage

1

Arguments

x

rasterio params as from raster_io0()

Details

Note that the input is a 4 or 6 element vector, with offset 0-based and output dimensions optional (will use the source window). The resample argument uses the syntax identical to that used in GDAL itself.

Value

list in sf RasterIO format

Examples

1
2
rio <- raster_io0(c(0L, 0L), src_dim = c(24L, 10L))
rasterio_to_sfio(rio)

mdsumner/affinething documentation built on June 18, 2021, 12:22 a.m.