ILWIS objects

 

Tables    

 

 

A table is a data object storing columns. A table usually contains tabular information which refers existing geographic information stored in maps. The table then contains extra information on the mapping units, polygons, segments or points in your maps, for instance cadastral information, soil information, etc. Such a table is called an attribute table. Raster, polygon, segment and point maps with a class or ID domain can have an attribute table. The domain of an attribute table should always be the same as the domain of the map to which the table relates.

Further, tables may store columns that contain the answers of an operation on a map, for instance an output cross table or output tables of a statistical operation. The domain of a table generated by an operation may be created by the operation itself or the table may use domain None. Tables that use domain None cannot be linked to a map.

Tables can be displayed and edited in a table window. A table window also offers you the possibility to display graphs. You can calculate with the columns in a table by typing a Table Calculation formula on the command line of a table window. For more complicated calculations, you can use the Columns menu in the table window.

Contents and structure of a table:

A table consists of records and columns. The smallest unit in a table is called a field.

Record names in a table are defined by the domain of the table.

Columns in a table have a name, a description, and each column uses a domain.

For more information on columns, see ILWIS objects : columns.

Names of tables:

In ILWIS 3, object names comply with Windows long file names. Also Universal Naming Convention (UNC) paths are supported. For more information, see How to use long object names.

To create a table:

The easiest way to create an attribute table is to open the Properties dialog box of a map, and then select the Attribute check box in the dialog box. Subsequently, create the table by clicking the little create button that appears next to the Attribute drop-down list box. The Create Table dialog box appears in which you can specify a name and description for the table. The domain of the table is already filled out and is the same domain that is used by the map. For other methods, see How to create a table.

When you create a table with domain None, the table cannot be linked to a map.

To display and edit a table:

The easiest way to open and edit existing tables is to double-click a table in the Catalog; the table is shown in a table window. For other methods of opening tables, see How to display maps and tables.

In a table window, a table can be displayed and edited in the table viewer and in record view: the table viewer gives you an overview of the whole table, and record view displays the contents of a certain record. For more information, see How to edit a table. It is not possible to edit the fields of dependent and read-only columns or the fields of table-owned columns in dependent tables. Table information can also be shown as graphs.

When an attribute table is linked to a map or to its domain, and the map is displayed in a map window, you can also double-click in the map to edit the attributes in the attribute table. For more information on the double-click action, see Map window : advanced functionality.

Operations on tables:

Calculations within tables are usually performed on columns. You can calculate with columns by typing a Table Calculation formula on the command line of a table window. When the definition symbol = is used in a calculation, the output column is dependent. For more complicated column operations such as aggregations, calculating cumulative values, joins, and least square fit calculations, you can use the Columns menu. For more information on columns, see ILWIS objects : columns.

When a table is the result of an operation such as the Cross operation or the statistical operations, the table itself is dependent and the columns created by the operation are table-owned. For more information on dependent objects, see Basic concepts : dependent data objects.

Operations that can be performed on a table as a whole are listed on the Operations, Table Operations menu in the Main window:

Technical information:

A table consists of an ASCII object definition file (.TBT) and a binary data file (.TB#). The object definition file of a table stores the table name, table description, whether the table is dependent or not, the number of columns in the table, column names, column descriptions, and for dependent columns the column definitions, etc. Further, the object definition file contains references to the table's domain, the table's data file, and the domains that are used by the individual columns. The .TB# file stores the data of the columns.

By viewing the properties of a table, you can see which domain the table is using and whether the table is dependent or not. For dependent tables, you can manage dependencies: break dependencies, make dependent tables up-to-date, delete the dependent table's data file, etc. For more information, see Basic concepts : properties of objects.

Limitations:

In principle, the maximum number of columns in a table is 32000 and the maximum number of records in a table is 2 billion. In practice however, limitations will occur by available memory. Furthermore, ILWIS is not designed to work with very large data sets: to speed up processing you may need to split tables into smaller logical parts.

See also: