GridTopology-class            package:sp            R Documentation

_C_l_a_s_s "_G_r_i_d_T_o_p_o_l_o_g_y" ~~~

_D_e_s_c_r_i_p_t_i_o_n:

     class for defining a 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. 

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

     see SpatialGrid

_S_l_o_t_s:

     '_c_e_l_l_c_e_n_t_r_e._o_f_f_s_e_t': numeric; vector with the smallest coordinates
          for each dimension; coordinates refer to the cell centre 

     '_c_e_l_l_s_i_z_e': numeric; vector with the cell size in each dimension

     '_c_e_l_l_s._d_i_m': integer; vector with number of cells in each
          dimension

     '_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:

_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

     _c_o_e_r_c_e 'signature(from = "GridTopology", to = "data.frame")':
          convert to data.frame with columns cellcentre.offset,
          cellsize and cells.dim

_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-class'

_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

