aRTlayer-class {aRT} | R Documentation

## Class "aRTlayer"

### Description

Class that represents a layer of information in the database. It can insert geometries into the database, process them and create `aRTtable`, `aRTtheme` and `aRTquerier` objects. TerraLib layers can stores various geometries in a layer, but in aRT, for simplify, each layer stores only one type of geometry.

### Objects from the Class

Objects can be created by calls of the form `new("aRTlayer", aRTdb, layername, proj)`.

### Slots

`pointer`:
  An external pointer. DO NOT change it!

### Extends

Class `"aRTcomponent"`, directly.

### Methods

initialize:
  Initializer of aRTlayer class.
showTables:
  Shows all information tables in the layer
addPoints:
  Inserts points in the layer.
addPolygons:
  Inserts polygons (rings) in the layer.
addLines:
  Inserts lines in the layer.
getGeometry:
  Returns the geometries stored in the layer.
getAttributes:
  Returns the stored attributes.
getMetric:
  Returns a metric operations (buffer, length, area, convex hull).
getSetMetric:
  Calculates a set operation (union, difference, intersection, xor).
getNN:
  (not implemented yet)
getRelation:
  Looks for spatial relations as contains, crosses, touches.
openTheme:
  Opens an existent theme.
createTheme:
  Creates a new theme and returns it.

### Author(s)

Marcos Aurelio Carrero and Pedro Ribeiro de Andrade Neto

### References

http://www.est.ufpr.br/aRT

### See Also

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

[Package aRT version 0.3-6 Index]