\HeaderA{GDALDataset-class}{Class "GDALDataset"}{GDALDataset.Rdash.class}
\aliasA{copyDataset}{GDALDataset-class}{copyDataset}
\aliasA{deleteDataset}{GDALDataset-class}{deleteDataset}
\aliasA{initialize,GDALDataset-method}{GDALDataset-class}{initialize,GDALDataset.Rdash.method}
\aliasA{putRasterData}{GDALDataset-class}{putRasterData}
\aliasA{saveDataset}{GDALDataset-class}{saveDataset}
\aliasA{saveDatasetAs}{GDALDataset-class}{saveDatasetAs}
\keyword{classes}{GDALDataset-class}
\begin{Description}\relax
\code{GDALDataset} extends \code{\LinkA{GDALReadOnlyDataset-class}{GDALReadOnlyDataset.Rdash.class}} with data update commands.
\end{Description}
\begin{Usage}
\begin{verbatim}
putRasterData(dataset, rasterData, band = 1, offset = c(0, 0))
saveDataset(dataset, filename)
copyDataset(dataset, driver, strict = FALSE, options = '')
deleteDataset(dataset)
saveDatasetAs(dataset, filename, driver = NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dataset}] An object inheriting from class 'GDALDataset'
\item[\code{rasterData}] A data array with \code{length(dim(rasterData)) = 2}
\item[\code{band}] The band number (1-based) to read from
\item[\code{offset}] Number of rows and columns from the origin (usually the
upper left corner) to begin reading from
\item[\code{filename}] name of file to contain raster data object
\item[\code{driver}] GDAL driver name to use for saving raster data object
\item[\code{strict}] Driver specific options (currently passed to GDAL)
\item[\code{options}] Driver specific options (currently ignored)
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\describe{

\item[\code{putRasterData}:] writes data contained in
\code{rasterData} to the dataset, begining at \code{offset} rows
and columns from the origin (usually the upper left corner). Data
type conversion is automatic.
\item[\code{saveDataset}:] saves a raster data object in a file using the driver of the object
\item[\code{saveDatasetAs}:] saves a raster data object in a file using the specified driver
\item[\code{copyDataset}:] make a copy of raster data object in a file using the specified driver
\item[\code{deleteDataset}:] delete the file from which the raster data object was read (should only delete files opened as GDALDataset objects
}
\end{Details}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{new("GDALDataset", filename, handle)}, where name: a string giving the name of a GDAL driver, handle: used internally; not for public consumption (default = NULL).
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{handle}:] Object of class \code{"externalptr", from class "GDALReadOnlyDataset"}, used internally; not for public consumption
}
\end{Section}
\begin{Section}{Extends}
Class \code{"GDALReadOnlyDataset"}, directly.
Class \code{"GDALMajorObject"}, by class "GDALReadOnlyDataset".
\end{Section}
\begin{Section}{Methods}
\describe{
\item[initialize] \code{signature(.Object = "GDALDataset")}: ... 
}
\end{Section}
\begin{Author}\relax
Timothy H. Keitt, modified by Roger Bivand
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{GDALDriver-class}{GDALDriver.Rdash.class}},
\code{\LinkA{GDALReadOnlyDataset-class}{GDALReadOnlyDataset.Rdash.class}}, \code{\LinkA{GDALTransientDataset-class}{GDALTransientDataset.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
\end{ExampleCode}
\end{Examples}

