aRTdb-createTable {aRT} | R Documentation |
Creates a new attribute table in the database and returns it.
If the table is created from an aRTdb
, then its type will be external.
In the case of creating it from layers, it can be any type but external.
## S4 method for signature 'aRTdb': createTable(object, tablename, id, length) ## S4 method for signature 'aRTlayer': createTable(object, id, length, generateids=F, type="event", itimeatt, ftimeatt)
object |
Object of aRTlayer or aRTdb class. |
tablename |
Name of the table. |
id |
The name of the unique identifier of the table (default = "id"). |
length |
The maximum length of id instances. |
generateids |
Populate the table ids linking with the layer geometries? Used with static and dynamic attributes tables only (default = TRUE). |
type |
The type of the table. See aRTtable-class for the
available types. |
itimeatt |
Initial time attribute name |
ftimeatt |
Final time attribute name. If it is the same as itimeatt (the default), the temporal table has only one temporal attribute. |
TerraLib uses some tables in the database, and then you cannot create
tables with these names. Names as “Points...
”, “Polygons...
”,
(other geometries), “tempTable
” and “te_...
” are reserved.
Note that names with non letters characters are also prohibited.
Pedro Ribeiro de Andrade
See aRTtable-class
to the description of table types.