\HeaderA{aRTlayer-addShape}{Add a shapefile to a layer}{aRTlayer.Rdash.addShape}
\aliasA{addShape}{aRTlayer-addShape}{addShape}
\aliasA{addShape,aRTlayer-method}{aRTlayer-addShape}{addShape,aRTlayer.Rdash.method}
\keyword{connection}{aRTlayer-addShape}
\begin{Description}\relax
Import a shapefile to a layer, without loading the data in \R. It creates
a static table to store the attributes.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S4 method for signature 'aRTlayer':
addShape(object, file="file.shp", table="table", id="id", length=4)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] Object of class \code{aRTlayer}.
\item[\code{file}] File name, with \dQuote{.shp}.
\item[\code{table}] Name of the table.
\item[\code{id}] The name of the unique identifier of the table (default = \dQuote{id}).
\item[\code{length}] The maximum length of id instances.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Pedro Ribeiro de Andrade Neto
\end{Author}
\begin{SeeAlso}\relax
See \code{\LinkA{aRTlayer-class}{aRTlayer.Rdash.class}} to the description of this class.
\code{\LinkA{aRTtable-class}{aRTtable.Rdash.class}} to the description of this class.
\code{read.shape} from \code{maptools} to load the file in \R{} (it is
important to find out which attribute is the id before import the
data to a layer).
\end{SeeAlso}

