SpatialGrid-class             package:sp             R Documentation

_C_l_a_s_s "_S_p_a_t_i_a_l_G_r_i_d" ~~~

_D_e_s_c_r_i_p_t_i_o_n:

     class for defining a full, rectangular grid of arbitrary dimension

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects are created by using e.g. 

     SpatialGrid(grid)

     with grid of class GridTopology-class

_S_l_o_t_s:

     '_g_r_i_d' object of class GridTopology-class, defining the grid
          topology (offset, cellsize, dim) 

     '_g_r_i_d._i_n_d_e_x' index of points in full grid, or integer(0) 

     '_c_o_o_r_d_s' coordinates of points, or bbox of grid 

     '_b_b_o_x': Object of class '"matrix"'; bounding box 

     '_p_r_o_j_4_s_t_r_i_n_g': Object of class '"CRS"'; projection  

_E_x_t_e_n_d_s:

     Class '"SpatialPoints"' directly; Class '"Spatial"', by class
     '"SpatialPoints"'.

_M_e_t_h_o_d_s:

     _c_o_o_r_d_i_n_a_t_e_s 'signature(x = "SpatialGrid")': calculates coordinates
          for each point on the grid; coordinates are not stored in
          objects of class SpatialGrid

     _s_u_m_m_a_r_y 'signature(x = "SpatialGrid")': gives summary

     _p_l_o_t 'signature(x = "SpatialGrid")': plots cell centers 

     "[" 'signature(x = "SpatialGrid")': select rows and columns 

_N_o_t_e:

_A_u_t_h_o_r(_s):

     Edzer J. Pebesma, e.pebesma@geo.uu.nl

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     'SpatialGridDataFrame-class', 'SpatialGrid'

_E_x_a_m_p_l_e_s:

     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

