aRTlayer-getMetric            package:aRT            R Documentation

_g_e_t_M_e_t_r_i_c

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

     Returns some spatial operation that from each spatial object of a
     layer.

_U_s_a_g_e:

     ## S4 method for signature 'aRTlayer':
     getMetric(object, metric= c("area", "length"), ID=NULL)

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

  object: Object of class 'aRTlayer'.

  metric: One metric among:

             *  area

             *  length

             *  distance

             *  withinDist

      ID: A subset of the layer's IDs, over which the metrics will be
          computed. In the case of 'NULL', 'getMetric' calculates the
          metrics over each element of the layer.

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

     Pedro Ribeiro de Andrade

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

     See 'aRTlayer-class' to the description of this class.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     getMetric(layer, "hull")
     getMetric(layer, "buffer", dist=500)
     ## End(Not run)

