GDALDataset-class           package:rgdal           R Documentation

_C_l_a_s_s "_G_D_A_L_D_a_t_a_s_e_t"

_D_e_s_c_r_i_p_t_i_o_n:

     'GDALDataset' extends 'GDALReadOnlyDataset-class' with data update
     commands.

_U_s_a_g_e:

     putRasterData(dataset, rasterData, band = 1, offset = c(0, 0))
     saveDataset(dataset, filename)
     copyDataset(dataset, driver, strict = FALSE, options = '')
     deleteDataset(dataset)
     saveDatasetAs(dataset, filename, driver = NULL)

_A_r_g_u_m_e_n_t_s:

 dataset: An object inheriting from class 'GDALDataset'

rasterData: A data array with 'length(dim(rasterData)) = 2'

    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

filename: name of file to contain raster data object

  driver: GDAL driver name to use for saving raster data object

  strict: Driver specific options (currently passed to GDAL)

 options: Driver specific options (currently ignored)

_D_e_t_a_i_l_s:


     '_p_u_t_R_a_s_t_e_r_D_a_t_a': writes data contained in 'rasterData' to the
          dataset, begining at 'offset' rows and columns from the
          origin (usually the upper left corner). Data type conversion
          is automatic.

     '_s_a_v_e_D_a_t_a_s_e_t': saves a raster data object in a file using the
          driver of the object

     '_s_a_v_e_D_a_t_a_s_e_t_A_s': saves a raster data object in a file using the
          specified driver

     '_c_o_p_y_D_a_t_a_s_e_t': make a copy of raster data object in a file using
          the specified driver

     '_d_e_l_e_t_e_D_a_t_a_s_e_t': delete the file from which the raster data object
          was read (should only delete files opened as GDALDataset
          objects

_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("GDALDataset",
     filename, handle)', where name: a string giving the name of a GDAL
     driver, handle: used internally; not for public consumption
     (default = NULL).

_S_l_o_t_s:

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

_E_x_t_e_n_d_s:

     Class '"GDALReadOnlyDataset"', directly. Class
     '"GDALMajorObject"', by class "GDALReadOnlyDataset".

_M_e_t_h_o_d_s:

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

_A_u_t_h_o_r(_s):

     Timothy H. Keitt, modified by Roger Bivand

_S_e_e _A_l_s_o:

     'GDALDriver-class', 'GDALReadOnlyDataset-class',
     'GDALTransientDataset-class'

_E_x_a_m_p_l_e_s:

