\HeaderA{GDALRasterBand-class}{Class "GDALRasterBand"}{GDALRasterBand.Rdash.class}
\aliasA{dim,GDALRasterBand-method}{GDALRasterBand-class}{dim,GDALRasterBand.Rdash.method}
\aliasA{getProjectionRef}{GDALRasterBand-class}{getProjectionRef}
\aliasA{getRasterData}{GDALRasterBand-class}{getRasterData}
\aliasA{getRasterTable}{GDALRasterBand-class}{getRasterTable}
\aliasA{initialize,GDALRasterBand-method}{GDALRasterBand-class}{initialize,GDALRasterBand.Rdash.method}
\keyword{classes}{GDALRasterBand-class}
\begin{Description}\relax
Returns a two-dimensional array with data from a raster band, used internally within functions
\end{Description}
\begin{Usage}
\begin{verbatim}
getRasterData(dataset, band = NULL, offset = c(0, 0),
              region.dim = dim(dataset), output.dim = region.dim,
              interleave = c(0, 0), as.is = FALSE) 

getRasterTable(dataset, band = NULL, offset = c(0, 0), region.dim = dim(dataset))

getProjectionRef(dataset)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dataset}] An object inheriting from class 'GDALReadOnlyDataset'
\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; presently ordered (y,x) - this may change
\item[\code{region.dim}] The number of rows and columns to read from the
dataset; presently ordered (y,x) - this may change
\item[\code{output.dim}] Number of rows and columns in the output data; if
smaller than \code{region.dim} the data will be subsampled
\item[\code{interleave}] Element and row stride while reading data; rarely
needed
\item[\code{as.is}] If false, scale the data to its natural units; if the
case of thematic data, return the data as factors
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\describe{
\item[\code{getRasterData}:] retrieves data from the dataset as array.

\item[\code{getRasterTable}:] retrieves data from the dataset as data frame.

\item[\code{getProjectionRef}:] returns the geodetic projection in
Well Known Text format.

}
\end{Details}
\begin{Section}{Objects from the Class}
Objects can be created by calls of the form \code{new("GDALRasterBand", dataset, band)}.
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{handle}:] Object of class \code{"externalptr", from class "GDALMajorObject"}, used internally; not for public consumption 
}
\end{Section}
\begin{Section}{Extends}
Class \code{"GDALMajorObject"}, directly.
\end{Section}
\begin{Section}{Methods}
\describe{
\item[dim] \code{signature(x = "GDALRasterBand")}: ... 
\item[initialize] \code{signature(.Object = "GDALRasterBand")}: ... 
}
\end{Section}
\begin{Author}\relax
Timothy H. Keitt, modified by Roger Bivand
\end{Author}
\begin{SeeAlso}\relax
See also \code{\LinkA{GDALDriver-class}{GDALDriver.Rdash.class}}, \code{\LinkA{GDALDataset-class}{GDALDataset.Rdash.class}}, \code{\LinkA{GDALTransientDataset-class}{GDALTransientDataset.Rdash.class}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
x <- new("GDALReadOnlyDataset", logo)
plot(density(getRasterTable(x)$band1))
GDAL.close(x)
\end{ExampleCode}
\end{Examples}

