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.

