| 1 |
\name{SpatialGrid-class} |
| 2 |
\docType{class} |
| 3 |
\alias{SpatialGrid-class} |
| 4 |
\alias{[,SpatialGrid-method} |
| 5 |
\alias{print.summary.SpatialGrid} |
| 6 |
\alias{as.data.frame.SpatialGrid} |
| 7 |
\alias{summary,SpatialGrid-method} |
| 8 |
\alias{coerce,SpatialGrid,data.frame-method} |
| 9 |
\alias{coerce,SpatialGrid,SpatialPixels-method} |
| 10 |
\alias{coerce,SpatialGrid,SpatialPoints-method} |
| 11 |
\alias{coerce,SpatialGrid,SpatialPolygons-method} |
| 12 |
\alias{show,SpatialGrid-method} |
| 13 |
\alias{plot,SpatialGrid,missing-method} |
| 14 |
\alias{coordnames,SpatialGrid-method} |
| 15 |
|
| 16 |
\title{Class "SpatialGrid" } |
| 17 |
\description{ class for defining a full, rectangular grid of |
| 18 |
arbitrary dimension } |
| 19 |
\section{Objects from the Class}{ |
| 20 |
Objects are created by using e.g. |
| 21 |
|
| 22 |
SpatialGrid(grid) |
| 23 |
|
| 24 |
with grid of class \link{GridTopology-class} |
| 25 |
} |
| 26 |
\section{Slots}{ |
| 27 |
\describe{ |
| 28 |
\item{\code{grid}}{ object of class \link{GridTopology-class}, defining the |
| 29 |
grid topology (offset, cellsize, dim) } |
| 30 |
\item{\code{bbox}:}{Object of class \code{"matrix"}; bounding box } |
| 31 |
\item{\code{proj4string}:}{Object of class \code{"CRS"}; projection } |
| 32 |
} |
| 33 |
} |
| 34 |
\section{Extends}{ |
| 35 |
Class \code{"SpatialPoints"} directly; |
| 36 |
Class \code{"Spatial"}, by class \code{"SpatialPoints"}. |
| 37 |
} |
| 38 |
\section{Methods}{ |
| 39 |
\describe{ |
| 40 |
\item{coordinates}{\code{signature(x = "SpatialGrid")}: calculates coordinates for |
| 41 |
each point on the grid; coordinates are not stored in objects of class SpatialGrid} |
| 42 |
\item{summary}{\code{signature(object = "SpatialGrid")}: summarize object} |
| 43 |
\item{plot}{\code{signature(x = "SpatialGrid")}: plots cell centers } |
| 44 |
\item{"["}{\code{signature(x = "SpatialGrid")}: select rows and columns } |
| 45 |
} |
| 46 |
} |
| 47 |
\author{ Edzer Pebesma, \email{[email protected]} } |
| 48 |
|
| 49 |
\seealso{ |
| 50 |
\code{\link{SpatialGridDataFrame-class}}, \code{\link{SpatialGrid}} |
| 51 |
} |
| 52 |
\examples{ |
| 53 |
x = GridTopology(c(0,0), c(1,1), c(5,5)) |
| 54 |
class(x) |
| 55 |
x |
| 56 |
summary(x) |
| 57 |
coordinates(x) |
| 58 |
y = SpatialGrid(grid = x) |
| 59 |
class(y) |
| 60 |
y |
| 61 |
} |
| 62 |
\keyword{classes} |