GDALDataset
extends 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)
length(dim(rasterData)) = 2
normalizePath
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.new("GDALDataset", filename, handle)
, where name: a string giving the name of a GDAL driver, handle: used internally; not for public consumption (default = NULL).handle
:"externalptr", from class "GDALReadOnlyDataset"
, used internally; not for public consumption"GDALReadOnlyDataset"
, directly.
Class "GDALMajorObject"
, by class "GDALReadOnlyDataset".signature(.Object = "GDALDataset")
: ... putRasterData
:rasterData
to the dataset, begining at offset
rows
and columns from the origin (usually the upper left corner). Data
type conversion is automatic.
saveDataset
:
saveDatasetAs
:
copyDataset
:
deleteDataset
:
GDALDriver-class
,
GDALReadOnlyDataset-class
, GDALTransientDataset-class