aRTlayer-getSetMetric          package:aRT          R Documentation

_S_e_t _M_e_t_r_i_c_s

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

     Return the result of a metric evolving set operations (union,
     intersection, difference and xor).

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

     ## S4 method for signature 'aRTlayer':
     getSetMetric(object, metric, ids=c("1","2","3"))

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

  object: Object of class 'aRTlayer'.

  metric: A set metric among:

     ids: The ids which to be used in the operation. Metrics
          'difference' and 'xor' use only two ids.

_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: 
     ## difference between two geometries
     getSetMetric(layer, "difference", ids=c("1", "2"))

     ## union of all geometries of the layer
     getSetMetric(layer, "union", ids=getGeometry(layer)$id)
     ## End(Not run)

