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)

