GDALMajorObject-class         package:rgdal         R Documentation

_C_l_a_s_s "_G_D_A_L_M_a_j_o_r_O_b_j_e_c_t"

_D_e_s_c_r_i_p_t_i_o_n:

     "GDALMajorObject" is a virtual base class for all GDAL objects.

_U_s_a_g_e:

     getDescription(object)

     getMetadata(object, domain = "")

     setMetadata(object, metadata)

     appendMetadata(object, metadata)

_A_r_g_u_m_e_n_t_s:

  object: an object inheriting from "GDALMajorObject"

  domain: the metadata domain (currently ignored)

metadata: a list of character strings

_D_e_t_a_i_l_s:

     '_g_e_t_D_e_s_c_r_i_p_t_i_o_n': returns a descrption string associated with the
          object. No setter method is defined because GDAL dataset
          objects use the description to hold the filename attached to
          the dataset. It would not be good to change that mid-stream.

     '_g_e_t_M_e_t_a_d_a_t_a': returns a list of metadata strings. Keys are
          returned as item names in the list.

     '_s_e_t_M_e_t_a_d_a_t_a': sets the metadata to the supplied list of strings.
          List item names will be used to generate metadata key names. 

_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("GDALMajorObject", ...)', but are only created for classes
     that extend this class.

_S_l_o_t_s:

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

_M_e_t_h_o_d_s:

     No methods defined with class "GDALMajorObject" in the signature.

_A_u_t_h_o_r(_s):

     Timothy H. Keitt, modified by Roger Bivand

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://keittlab.bio.sunysb.edu/R/GDAL/>, <URL:
     http://www.remotesensing.org/gdal/>

_S_e_e _A_l_s_o:

     'GDALDriver-class', 'GDALReadOnlyDataset-class',
     'GDALDataset-class' and 'GDALTransientDataset-class'

_E_x_a_m_p_l_e_s:

     driver <- new('GDALDriver', getGDALDriverNames()[1])
     setMetadata(driver, list(Key = 'Test metadata'))
     getMetadata(driver)
     rm(driver)
     logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
     x <- new("GDALReadOnlyDataset", logo)
     getDescription(x)
     getMetadata(x)
     dim(x)
     GDAL.close(x)

