RRASTER -- R Raster

Driver short name

RRASTER

Added in version 2.2.

Driver built-in by default

This driver is built-in by default

This is a read-only reader for the datasets handled by the R Raster package. Those datasets are made of a .grd file, which is a text header file, and a .gri binary file containing the raster data itself. The .grd is the file opened by GDAL. Starting with GDAL 2.3, the driver will read ratvalues as RAT or color tables. Layer names will be assigned to GDAL band description. The 'creator' and 'created' attributes of the '[general]' section will be assigned to the GDAL 'CREATOR' and 'CREATED' dataset metadata items.

Starting with GDAL 2.3, the driver has write capabilities. Color tables or RAT will be written. The 'CREATOR' and 'CREATED' dataset metadata items will be written as the 'creator' and 'created' attributes of the '[general]' section. Band description will be written as the 'layername' attribute of the '[description]' section.

Creation options can be specified in command-line tools using the syntax -co <NAME>=<VALUE> or by providing the appropriate arguments to GDALCreate() (C) or Driver.Create (Python). The following creation options are supported:

  • INTERLEAVE=[BIP/BIL/BSQ]: Defaults to BIL. Respectively band interleaved by pixel, band interleaved by line, band sequential. Starting with GDAL 3.5, when copying from a source dataset with multiple bands which advertises a INTERLEAVE metadata item, if the INTERLEAVE creation option is not specified, the source dataset INTERLEAVE will be automatically taken into account.

  • PIXELTYPE=SIGNEDBYTE: To write Byte bands as signed byte instead of unsigned byte. Starting with GDAL 3.7, this option is deprecated and Int8 should rather be used.

Driver capabilities

Supports CreateCopy()

This driver supports the GDALDriver::CreateCopy() operation

Supports Create()

This driver supports the GDALDriver::Create() operation

Supports Georeferencing

This driver supports georeferencing

Supports VirtualIO

This driver supports virtual I/O operations (/vsimem/, etc.)

See Also