aRTlayer-addShape {aRT} | R Documentation |
Import a shapefile to a layer, without loading the data in R. It creates a static table to store the attributes.
## S4 method for signature 'aRTlayer': addShape(object, file="file.shp", table="table", id="id", length=4)
object |
Object of class aRTlayer . |
file |
File name, with “.shp”. |
table |
Name of the table. |
id |
The name of the unique identifier of the table (default = “id”). |
length |
The maximum length of id instances. |
Pedro Ribeiro de Andrade Neto
See aRTlayer-class
to the description of this class.
aRTtable-class
to the description of this class.
read.shape
from 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).