aRTdb                  package:aRT                  R Documentation

_C_l_a_s_s _a_R_T_d_b

_D_e_s_c_r_i_p_t_i_o_n:

     Class that manipulates a database. Data is stored in layers
     (geometries and their attributes) or external tables (attributes
     not directly connected with geometries). 'aRTdb' objects consume
     more memory then any other object of this package, because it
     stores all themes, layers and table definitions, and these objects
     store just a pointer to its "father". We recommend to work with
     only one object of this class per time.

_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("aRTdb", aRTconn,
     dbname, create)'. To avoid creating objects this way, there are
     two functions of class 'aRTconn': 'createDb' and 'openDb'.

_A_r_g_u_m_e_n_t_s:

     _a_R_T_c_o_n_n Object of aRTconn class.

     _d_b_n_a_m_e Database name.

     _c_r_e_a_t_e Create a new database when create=TRUE, and open a existing
          database when create=FALSE. The default is create=FALSE.

_E_x_t_e_n_d_s:

     Class 'aRTcomponent', directly.

_M_e_t_h_o_d_s:

     _c_r_e_a_t_e_L_a_y_e_r: Creates a new layer returns it.

     _c_r_e_a_t_e_V_i_e_w: Creates an empty View in the database.

     _d_e_l_e_t_e_L_a_y_e_r: Delete a layer in the database.

     _d_e_l_e_t_e_T_h_e_m_e: Delete a theme in the database.

     _d_e_l_e_t_e_V_i_e_w: Delete a view in the database.

     _i_m_p_o_r_t_S_h_a_p_e: Imports a shapefile to the database.

     _o_p_e_n_L_a_y_e_r: Opens an existent layer.

     _o_p_e_n_T_h_e_m_e: Opens an existent theme. (Themes can be created only
          from layers.)

     _s_h_o_w_L_a_y_e_r_s: Shows all the available layers.

     _s_h_o_w_T_h_e_m_e_s: Shows all the available themes.

     _s_h_o_w_V_i_e_w_s: Show all the available views.

     _s_u_m_m_a_r_y: Some information about the database.

_E_n_v_i_r_o_n_m_e_n_t_s:

     An 'aRTenv' is the set of themes and views of a user in a TerraLib
     database. Layers in a database are visible by all users that have
     read permission in the database, but each user has it owns views
     and themes. Therefore it can be useful to manipulate a user's
     environment, as for example save in a file, load and remove.

     'aRTloadEnv', 'aRTsaveEnv', 'aRTclearEnv', 'aRTgetEnv'  and
     'aRTremoveEnv' manipulate environments without any aRT object as
     argument.

     Views are only destinate to TerraView users. It has no importance
     inside R.

_A_u_t_h_o_r(_s):

     Marcos Aurelio Carrero, Pedro Ribeiro de Andrade Neto

_S_e_e _A_l_s_o:

     See 'aRTdb-METHOD' for a method of this class or 'CLASSNAME-class'
     for links to other classes.

