aRTlayer-getOperation          package:aRT          R Documentation

_g_e_t_O_p_e_r_a_t_i_o_n

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

     Returns some spatial operation that is not stored in the layer. It
     returns the result of this operation over each element.

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

     ## S4 method for signature 'aRTlayer':
     getOperation(object, operation= c("centroid", "hull", "buffer"), ID = NULL, distance = NULL, as.sp = TRUE)

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

  object: Object of class 'aRTlayer'.

operation: One of:

             *  centroid

             *  hull

             *  buffer

      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.

distance: The distance, used only with buffer.

   as.sp: A boolean value indicating whether the result should be a
          Spatial or an 'aRTgeometry' object

     .

_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: 
     getOperation(layer, "hull")
     getOperation(layer, "buffer", dist=500)
     ## End(Not run)

