aRTlayer-addShape {aRT} | R Documentation

## Add a shapefile to a layer

### Description

Import a shapefile to a layer, without loading the data into R. It creates a static table to store the attributes.

### Usage

    ## S4 method for signature 'aRTlayer':
    addShape(object, file, table, ID, length=10)

### Arguments

`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.
`length` | The maximum length of id instances.

### Author(s)

Pedro Ribeiro de Andrade

### See Also

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).

[Package aRT version 1.7-1 Index]