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 is not stored in the layer. It
     rerurns the result of this operation over each element.

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

     ## S4 method for signature 'aRTlayer':
     getMetric(object, metric, distance)

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

  object: Object of class 'aRTlayer'.

  metric: One metric among:

             *  area

             *  length

             *  centroid

             *  hull

             *  buffer

distance: The distance, used only with buffer.

_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.

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

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

