| 1 |
\name{GridTopology-class} |
| 2 |
\docType{class} |
| 3 |
\alias{GridTopology-class} |
| 4 |
\alias{print.summary.GridTopology} |
| 5 |
\alias{summary,GridTopology-method} |
| 6 |
\alias{show,GridTopology-method} |
| 7 |
\alias{show,summary.GridTopology-method} |
| 8 |
\alias{coerce,GridTopology,data.frame-method} |
| 9 |
\alias{coerce,SpatialGrid,GridTopology-method} |
| 10 |
\alias{coerce,SpatialPixels,GridTopology-method} |
| 11 |
|
| 12 |
\title{Class "GridTopology" } |
| 13 |
\description{ class for defining a rectangular grid of |
| 14 |
arbitrary dimension } |
| 15 |
\section{Objects from the Class}{ |
| 16 |
Objects are created by using e.g. |
| 17 |
|
| 18 |
GridTopology(c(0,0), c(1,1), c(5,5)) |
| 19 |
|
| 20 |
see \link{SpatialGrid} |
| 21 |
} |
| 22 |
\section{Slots}{ |
| 23 |
\describe{ |
| 24 |
\item{\code{cellcentre.offset}:}{numeric; vector with the smallest centroid coordinates for |
| 25 |
each dimension; coordinates refer to the cell centre } |
| 26 |
\item{\code{cellsize}:}{numeric; vector with the cell size in each dimension} |
| 27 |
\item{\code{cells.dim}:}{integer; vector with number of cells in each dimension} |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
%\section{Extends}{ |
| 32 |
% Class \code{"Spatial"}, by class \code{"SpatialPoints"}. |
| 33 |
%} |
| 34 |
\section{Methods}{ |
| 35 |
\describe{ |
| 36 |
\item{coordinates}{\code{signature(x = "SpatialGrid")}: calculates coordinates for |
| 37 |
each point on the grid} |
| 38 |
\item{summary}{\code{signature(object = "SpatialGrid")}: summarize object} |
| 39 |
\item{coerce}{\code{signature(from = "GridTopology", to = "data.frame")}: |
| 40 |
convert to data.frame with columns cellcentre.offset, cellsize and cells.dim} |
| 41 |
} |
| 42 |
} |
| 43 |
\author{ Edzer Pebesma, \email{[email protected]} } |
| 44 |
|
| 45 |
\seealso{ |
| 46 |
\code{\link{SpatialGridDataFrame-class}}, \code{\link{SpatialGrid-class}} |
| 47 |
} |
| 48 |
\examples{ |
| 49 |
x = GridTopology(c(0,0), c(1,1), c(5,5)) |
| 50 |
class(x) |
| 51 |
x |
| 52 |
summary(x) |
| 53 |
coordinates(x) |
| 54 |
y = SpatialGrid(grid = x) |
| 55 |
class(y) |
| 56 |
y |
| 57 |
} |
| 58 |
\keyword{classes} |