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)

     getRasterBand(dataset, band = 1)

     getRasterBlockSize(raster)

_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

  raster: An object of class GDALRasterBand

_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.

     '_g_e_t_R_a_s_t_e_r_B_a_n_d': returns a raster band

     '_g_e_t_R_a_s_t_e_r_B_l_o_c_k_S_i_z_e': returns the natural block size of the raster
          band. Use this for efficient tiled IO.


_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)

