aRTlayer-addShape            package:aRT            R Documentation

_A_d_d _a _s_h_a_p_e_f_i_l_e _t_o _a _l_a_y_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Import a shapefile to a layer, without loading the data in R. It
     creates a static table to store the attributes.

_U_s_a_g_e:

     ## S4 method for signature 'aRTlayer':
     addShape(object, file="file.shp", table="table", id="id", length=4)

_A_r_g_u_m_e_n_t_s:

  object: Object of class 'aRTlayer'.

    file: File name, with ".shp".

   table: Name of the table.

      id: The name of the unique identifier of the table (default =
          "id").

  length: The maximum length of id instances.

_A_u_t_h_o_r(_s):

     Pedro Ribeiro de Andrade Neto

_S_e_e _A_l_s_o:

     See 'aRTlayer-class' to the description of this class.
     'aRTtable-class' to the description of this class. 'read.shape'
     from 'maptools' to load the file in R (it is important to find out
     which attribute is the id before import the data to a layer).

