File: SpatialPixels-class.Rd

package info (click to toggle)
r-cran-sp 1:0.9-66-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,696 kB
  • ctags: 123
  • sloc: ansic: 1,475; sh: 6; makefile: 5
file content (63 lines) | stat: -rw-r--r-- 2,186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\name{SpatialPixels-class}
\docType{class}
\alias{SpatialPixels-class}
\alias{[,SpatialPixels-method}
\alias{coerce,SpatialPixels,SpatialGrid-method}
\alias{print.summary.SpatialPixels}
\alias{as.data.frame.SpatialPixels}
\alias{summary,SpatialPixels-method}
\alias{coerce,SpatialPixels,data.frame-method}
\alias{show,SpatialPixels-method}
\alias{rbind.SpatialPixels}

\title{Class "SpatialPixels" ~~~ }
\description{ class for defining a pixels, forming a
possibly incomplete rectangular grid of arbitrary dimension }
\section{Objects from the Class}{
Objects are created by using e.g. 

SpatialPixels(points)

with points of class \link{SpatialPoints-class}
}
\section{Slots}{
  \describe{
	\item{\code{grid}}{ object of class \link{GridTopology-class}, defining the
	grid topology (offset, cellsize, dim) }
	\item{\code{grid.index}}{integer; index of points in full grid}
	\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  }
  }
}
\section{Extends}{
Class \code{"SpatialPoints"} directly;
Class \code{"Spatial"}, by class \code{"SpatialPoints"}.
}
\section{Methods}{
 \describe{
   \item{coordinates}{\code{signature(x = "SpatialPixels")}: calculates coordinates for
   each point on the grid; coordinates are not stored in objects of class SpatialGrid}
   \item{summary}{\code{signature(object = "SpatialPixels")}: summarize object}
   \item{plot}{\code{signature(x = "SpatialPixels")}: plots cell centers }
   \item{"["}{\code{signature(x = "SpatialPixels")}: select pixel cells; the argument
   \code{drop=TRUE} (default) recalculates grid topology for the selection, if
   \code{drop=FALSE} the grid topology of the parent object is kept. }
   \item{rbind}{\code{signature(x = "SpatialPixels")}: rbind-like method}
 }
}
\author{ Edzer Pebesma, \email{edzer.pebesma@uni-muenster.de} }

\seealso{
  \code{\link{SpatialPixelsDataFrame-class}}, \code{\link{SpatialGrid-class}}
}
\examples{
data(meuse.grid)
pts = meuse.grid[c("x", "y")]
y = SpatialPixels(SpatialPoints(pts))
class(y)
y
summary(y)
plot(y)
}
\keyword{classes}