\HeaderA{aRTlayer-getMetric}{getMetric}{aRTlayer.Rdash.getMetric}
\aliasA{area}{aRTlayer-getMetric}{area}
\aliasA{center}{aRTlayer-getMetric}{center}
\aliasA{centroid}{aRTlayer-getMetric}{centroid}
\aliasA{getMetric}{aRTlayer-getMetric}{getMetric}
\aliasA{getMetric,aRTlayer-method}{aRTlayer-getMetric}{getMetric,aRTlayer.Rdash.method}
\aliasA{hull}{aRTlayer-getMetric}{hull}
\aliasA{length}{aRTlayer-getMetric}{length}
\keyword{connection}{aRTlayer-getMetric}
\begin{Description}\relax
Returns some spatial operation that is not stored in the layer.
It rerurns the result of this operation over each element.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S4 method for signature 'aRTlayer':
getMetric(object, metric, distance)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] Object of class \code{aRTlayer}.
\item[\code{metric}] One metric among:
\Itemize{
\item area
\item length
\item centroid
\item hull
\item buffer
}

\item[\code{distance}] The distance, used only with buffer.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Pedro Ribeiro de Andrade Neto
\end{Author}
\begin{SeeAlso}\relax
See \code{aRTlayer-class} to the description of this class.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Not run: 
getMetric(layer, "hull")
getMetric(layer, "buffer", dist=500)
## End(Not run)\end{ExampleCode}
\end{Examples}

