\HeaderA{SpatialGrid-class}{Class "SpatialGrid" ~~~}{SpatialGrid.Rdash.class}
\aliasA{print.summary.SpatialGrid}{SpatialGrid-class}{print.summary.SpatialGrid}
\aliasA{summary.SpatialGrid}{SpatialGrid-class}{summary.SpatialGrid}
\aliasA{[,SpatialGrid-method}{SpatialGrid-class}{[,SpatialGrid.Rdash.method}
\keyword{classes}{SpatialGrid-class}
\begin{Description}\relax
class for defining a full, rectangular grid of
arbitrary dimension
\end{Description}
\begin{Section}{Objects from the Class}
Objects are created by using e.g. 

SpatialGrid(grid)

with grid of class \LinkA{GridTopology-class}{GridTopology.Rdash.class}
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{grid}] object of class \LinkA{GridTopology-class}{GridTopology.Rdash.class}, defining the
grid topology (offset, cellsize, dim) 
\item[\code{grid.index}] index of points in full grid, or integer(0) 
\item[\code{coords}] coordinates of points, or bbox of grid 
\item[\code{bbox}:] Object of class \code{"matrix"}; bounding box 
\item[\code{proj4string}:] Object of class \code{"CRS"}; projection  
}
\end{Section}
\begin{Section}{Extends}
Class \code{"SpatialPoints"} directly;
Class \code{"Spatial"}, by class \code{"SpatialPoints"}.
\end{Section}
\begin{Section}{Methods}
\describe{
\item[coordinates] \code{signature(x = "SpatialGrid")}: calculates coordinates for
each point on the grid; coordinates are not stored in objects of class SpatialGrid
\item[summary] \code{signature(x = "SpatialGrid")}: gives summary
\item[plot] \code{signature(x = "SpatialGrid")}: plots cell centers 
\item["["] \code{signature(x = "SpatialGrid")}: select rows and columns 
}
\end{Section}
\begin{Note}\relax
\end{Note}
\begin{Author}\relax
Edzer J. Pebesma, \email{e.pebesma@geo.uu.nl}
\end{Author}
\begin{References}\relax
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{SpatialGridDataFrame-class}{SpatialGridDataFrame.Rdash.class}}, \code{\LinkA{SpatialGrid}{SpatialGrid}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x = GridTopology(c(0,0), c(1,1), c(5,5))
class(x)
x
summary(x)
coordinates(x)
y = SpatialGrid(grid = x)
class(y)
y
\end{ExampleCode}
\end{Examples}

