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', as.character(getGDALDriverNames()[1,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)

