aRTlayer-addShape {aRT} | R Documentation

## Add a shapefile to a layer

### Description

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

### Usage

    ## S4 method for signature 'aRTlayer':
    addShape(object, file="file.shp", table="table", id="id", length=4)

### 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 (default = “id”).
`length` | The maximum length of id instances.

### Author(s)

Pedro Ribeiro de Andrade Neto

### 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 0.4-0 Index]