GDALReadOnlyDataset-class with data update commands.
putRasterData(dataset, rasterData, band = 1, offset = c(0, 0)) saveDataset(dataset, filename, options=NULL, returnNewObj=FALSE) copyDataset(dataset, driver, strict = FALSE, options = NULL, fname=NULL) deleteDataset(dataset) saveDatasetAs(dataset, filename, driver = NULL, options=NULL)
Objects can be created by calls of the form
new("GDALDataset", filename, handle), where name: a string giving the name of a GDAL driver, handle: used internally; not for public consumption (default = NULL).
Object of class
"externalptr", from class "GDALReadOnlyDataset", used internally; not for public consumption
"GDALMajorObject", by class "GDALReadOnlyDataset".
signature(.Object = "GDALDataset"): ...
An object inheriting from class 'GDALDataset'
A data array with
length(dim(rasterData)) = 2
The band number (1-based) to read from
Number of rows and columns from the origin (usually the upper left corner) to begin reading from
name of file to contain raster data object; will be normalized with
until and including 0.5-27,
saveDataset returned an invisible copy of the new file handle, which was then only finalized when the garbage collector ran. The old behaviour can be retained by setting to FALSE, the default behaviour is to close the hande and not return it.
GDAL driver name to use for saving raster data object
TRUE if the copy must be strictly equivalent, or more normally FALSE indicating that the copy may adapt as needed for the output format
Driver specific options (currently passed to GDAL)
default NULL, used internally to pass through a file name with a required extension (RST driver has this problem)
writes data contained in
rasterData to the dataset, begining at
and columns from the origin (usually the upper left corner). Data
type conversion is automatic.
saves a raster data object in a file using the driver of the object
saves a raster data object in a file using the specified driver
make a copy of raster data object in a file using the specified driver
delete the file from which the raster data object was read (should only delete files opened as GDALDataset objects