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

GridTopology(c(0,0), c(1,1), c(5,5))

see \LinkA{SpatialGrid}{SpatialGrid}
\end{Section}
\begin{Section}{Slots}
\describe{
\item[\code{cellcentre.offset}:] numeric; vector with the smallest coordinates for
each dimension; coordinates refer to the cell centre 
\item[\code{cellsize}:] numeric; vector with the cell size in each dimension
\item[\code{cells.dim}:] integer; vector with number of cells in each dimension
\item[\code{bbox}:] Object of class \code{"matrix"}; bounding box 
\item[\code{proj4string}:] Object of class \code{"CRS"}; projection  
}
\end{Section}
\begin{Section}{Extends}
\end{Section}
\begin{Section}{Methods}
\describe{
\item[coordinates] \code{signature(x = "SpatialGrid")}: calculates coordinates for
each point on the grid
\item[coerce] \code{signature(from = "GridTopology", to = "data.frame")}: convert to data.frame
with columns cellcentre.offset, cellsize and cells.dim

}
\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-class}{SpatialGrid.Rdash.class}}
\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}

