Skip to contents

Wraps a DataBackend around spatial objects. Currently these S3 methods are only alternative ways for writing DataBackendRaster$new(). They do not support coercing from other backends yet.

Usage

# S3 method for stars
as_data_backend(data, primary_key = NULL, ...)

# S3 method for SpatRaster
as_data_backend(data, primary_key = NULL, ...)

# S3 method for RasterBrick
as_data_backend(data, primary_key = NULL, ...)

# S3 method for RasterStack
as_data_backend(data, primary_key = NULL, ...)

Arguments

data

(terra::SpatRaster)
The input terra::SpatRaster.

primary_key

(character(1) | integer())
Name of the primary key column, or integer vector of row ids.

...

(any)
Not used.

Value

DataBackend.