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)

