GDALRasterBand-class          package:rgdal          R Documentation

_C_l_a_s_s "_G_D_A_L_R_a_s_t_e_r_B_a_n_d"

_D_e_s_c_r_i_p_t_i_o_n:

     Returns a two-dimensional array with data from a raster band, used
     internally within functions

_U_s_a_g_e:

     getRasterData(dataset, band = NULL, offset = c(0, 0),
                   region.dim = dim(dataset), output.dim = region.dim,
                   interleave = c(0, 0), as.is = FALSE) 

     getRasterTable(dataset, band = NULL, offset = c(0, 0), region.dim = dim(dataset))

     getProjectionRef(dataset)

_A_r_g_u_m_e_n_t_s:

 dataset: An object inheriting from class 'GDALReadOnlyDataset'

    band: The band number (1-based) to read from

  offset: Number of rows and columns from the origin (usually the upper
          left corner) to begin reading from; presently ordered (y,x) -
          this may change

region.dim: The number of rows and columns to read from the dataset;
          presently ordered (y,x) - this may change

output.dim: Number of rows and columns in the output data; if smaller
          than 'region.dim' the data will be subsampled

interleave: Element and row stride while reading data; rarely needed

   as.is: If false, scale the data to its natural units; if the case of
          thematic data, return the data as factors

_D_e_t_a_i_l_s:

     '_g_e_t_R_a_s_t_e_r_D_a_t_a': retrieves data from the dataset as array.

     '_g_e_t_R_a_s_t_e_r_T_a_b_l_e': retrieves data from the dataset as data frame.

     '_g_e_t_P_r_o_j_e_c_t_i_o_n_R_e_f': returns the geodetic projection in Well Known
          Text format.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("GDALRasterBand",
     dataset, band)'.

_S_l_o_t_s:

     '_h_a_n_d_l_e': Object of class '"externalptr", from class
          "GDALMajorObject"', used internally; not for public
          consumption 

_E_x_t_e_n_d_s:

     Class '"GDALMajorObject"', directly.

_M_e_t_h_o_d_s:

     _d_i_m 'signature(x = "GDALRasterBand")': ... 

     _i_n_i_t_i_a_l_i_z_e 'signature(.Object = "GDALRasterBand")': ... 

_A_u_t_h_o_r(_s):

     Timothy H. Keitt, modified by Roger Bivand

_S_e_e _A_l_s_o:

     See also 'GDALDriver-class', 'GDALDataset-class',
     'GDALTransientDataset-class'

_E_x_a_m_p_l_e_s:

     logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
     x <- new("GDALReadOnlyDataset", logo)
     plot(density(getRasterTable(x)$band1))
     GDAL.close(x)

