aRTdb {aRT} | R Documentation

## Class aRTdb

### Description

Class that manipulates a database. Data is stored in layers (geometries and their attributes) or external tables (attributes not directly connected to any geometry). `aRTdb` objects use more memory than any other object of this package because it stores the definitions of all themes, layers, and tables. Objects of these three classes store only a pointer to its “father”, the database. We recommend to work with only one object of this class per time.

### Objects from the Class

Objects can be created by using `createDb` or `openDb`, methods of `aRTconn`.

### Extends

Class `aRTcomponent`, directly.

### Methods

createLayer:
  Creates a new layer returns it.
createTable:
  Creates an empty table in the database.
createView:
  Creates an empty View in the database.
deleteLayer:
  Deletes a layer of the database.
deleteTable:
  Deletes a table of the database.
deleteTheme:
  Deletes a theme of the database.
deleteView:
  Deletes a view in the database.
importMif:
  Imports a MID/MIF file to the database.
importShape:
  Imports a shapefile to the database.
importSpData:
  Imports data in the sp format to the database.
importTable:
  Imports a data.frame to a database table.
openLayer:
  Opens an existent layer.
openTheme:
  Opens an existent theme. (Themes can be created only from layers.)
reload:
  Reloads the data about themes and layers. It is useful when something has been changed from outside R.
showLayers:
  Shows all the available layers.
showThemes:
  Shows all the available themes.
showViews:
  Show all the available views.
summary:
  Returns some information about the database.

### Author(s)

Marcos Aurelio Carrero, Pedro Ribeiro de Andrade

### See Also

See `aRTdb-METHOD` for a method of this class or `CLASSNAME-class` for links to other classes.

[Package aRT version 1.7-1 Index]