createLayer {aRT} | R Documentation

## Create a layer

### Description

Creates a new layer in a database and returns it. When created using an `aRTdb` object, it returns an empty layer. When created using an `aRTlayer` object, it fills it with cells according to a given resolution.

### Usage

    ## S4 method for signature 'aRTdb':
    createLayer(object, lname, proj=NA)
    ## S4 method for signature 'aRTlayer':
    createLayer(object, lname, rx, ry, allbox)

### Arguments

`object` | Object of `aRTdb` or `aRTlayer` class.
`lname` | Name of the new layer.
`proj` | Projection in proj.4 format, and dafault is no projection. Some projections are not supported by TerraLib.
`rx` | The x axis resolution of the cell layer.
`ry` | The y axis resolution of the cell layer.
`allbox` | Will new layer have cells in the whole box of the original layer, or the cells will comprise only where there is some geometry?

### Author(s)

Pedro Ribeiro de Andrade

### See Also

See `aRTlayer-class` to the description of this class, and `openLayer` to just open an existent layer. See `createAndFillColumn` to the description on how to fill cellular spaces. See also spproj for conversion between projections.

[Package aRT version 1.7-1 Index]