Table window

Functionality

A table window displays a table. In a table window, you can view and edit table data, and you can calculate with your table data.

A table window consists of:

Furthermore, a context-sensitive menu is available.

The remainder of this topic is divided into the following sections:

Showing table data

Contents of the table viewer:

The table viewer displays the contents of your table. A table consists of columns, records and fields. Schematically, this looks like:

 

Record names or record numbers appear on (gray) record buttons that are arranged along the left side of the table.

Column names appear on (gray) column buttons, also called column headers, arranged along the top of the table viewer.

The record buttons and column headers in a table window are sensitive to clicking, double-clicking and drag-and-drop actions.

In general, a table window displays a table. However, parts of the table viewer are also used when displaying a histogram, a cross table, or a two-dimensional table, or when opening the georefence tiepoints editor or the coordinate system tiepoints editor.

Advanced users may also open objects as a table which are internally stored as tables, such as: point maps; class, ID, and picture domains; class representations; georeference tiepoints. You can then edit and calculate with the table-owned columns. For more information, see How to open objects as a table.

For more information on creating new tables, see How to create a table.

To display existing tables in a table window, see How to display maps and tables.

Statistics pane, to view statistics of value columns:

The statistics pane can be shown in a split window at the bottom of the table window. It shows for every value column: minimum, maximum, average, standard deviation and sum of the values in the value column.

To switch on the statistics pane:

For more information, refer to Table window : statistics pane.

Record View, to view table data record by record:

Record View can be used to display table data for a single specific record.

To switch on the Record View dockable window:

For more information, refer to Table window : record view.

Setting the font for table windows:

The font that is used in a table can be set in the Preferences:

Basic actions in a table window

Column Management:

Column Management provides you with a simple interface to:

To open Column Management:

For more information, refer to Column Management or to How to use columns.

To go to a specific column or record:

To add or delete columns:

To add an editable column:

For more information, refer to Add Column.

 

Tip: You can also obtain new columns by typing a TabCalc formula on the command line of the table window. For more information, see section Calculating with table data below.

To delete one or more subsequent columns:

For more information, refer to Table window: Clear/Delete.

To change the width or to change the order of columns:

To change the width of a column:

 

 

To change the width of a column, you can also use Column Management or Column Properties.

To move a column to another position:

 

To add and to delete records:

If the table is an attribute table, the records in the table are part of a domain which is both used by the table and by the map to which the table refers.

If the table is not an attribute table, but uses system domain None:

To sort records:

The Sort Records dialog box will be opened. You can sort on the domain of the table or sort on a column of the table, either in ascending or descending order.

 

Tip: To sort on a column, you can also select a column, then click the selection with the right mouse button and choose Sort Ascending or Sort Descending from the context-sensitive menu.

To view the properties of the table or the properties of a column:

To view the properties of the table:

The Table Properties sheet will be opened.

To view the properties of a column:

The Column Properties dialog box will be opened.

Editing table data

To edit a table:

Fields of editable columns, i.e. columns which are not dependent nor read-only, can be edited directly in the table viewer, but also in record view.

For more information, see How to edit a table.

If you wish to edit many single fields in the table, it is advised not to use the Enter key on the keyboard, instead:

Whenever you move to another field, the previously edited field is directly stored on disk.

As long as the 'Edit box' is open, you can still press Esc to undo an edit action. After you pressed the Enter key, or the Arrow Up, Arrow Down, Tab, or Shift+Tab keys, the edit action is completed and the change is stored.

 

Note: You cannot edit:

In the table viewer, you can not only edit single fields, but you can also edit the values of blocks of fields in a single column, or the values of multiple fields in one or more records in multiple columns.

The Edit fields in a single column or the Edit fields in multiple columns dialog box will appear.

All editing changes are directly stored on disk. You cannot undo an editing action.

Calculating with table data

Column calculations:

A very important feature of a table window is its command line through which calculations can be performed. The available MapCalc and TabCalc operators and functions are extensively described, including examples, in the Map and Table Calculation section.

To calculate with columns, type a tabcalc formula on the command line of the table window. A very simple calculation may read:

OutColumn = Column1 + Column2

When the definition symbol (=) is used, calculations will result in dependent columns.

Besides some 50 available internal TabCalc functions, you can also define your own functions.

Pocket line calculator:

Optionally, you can use the command line as a pocket line calcalator: start an expression by a questionmark. You will then calculate a single value, which will be displayed in a message box and you will not obtain an output column.

Column operations:

You can also use the command line to perform an aggregation or a join, to calculate a cumulative sum or other statistics, to perform a least squares fit, to calculate semi-variogram values according to a semi-variogram model, or to classify column values (slicing). However, at first sight, the required syntax may seem rather complicated. It may therefore be easier to use the Aggregate, Join, Cumulative, Statistics, Least Squares, Semi-variogram or Column Slicing commands on the Columns menu. The appearing dialog box, or the Join wizard, will then produce the necessary syntax for you.

Making dependent columns up-to-date:

When you edit values in one or more source columns, the values of dependent columns (which may use the values of these source columns as input) are not automatically recalculated or made up-to-date.

To recalculate all dependent columns in the table:

When you used the assignment symbol (:=) in calculations, the output of the calculation will be an editable source column again. These cannot be recalculated when input has changed.

Other functionality of a table window

To copy (part of) the table into the clipboard:

For more information and examples, refer to Table window : Copy.

You can use the Paste option in the same table or another ILWIS table, or in another Windows application to paste the copied part into the other application. For more information on and examples of pasting into ILWIS tables, refer to Table window : Paste.

To print a table:

You can print the entire table or a selection of the table, and you can select the font for printing.

Join, Aggregate, Statistics etc. through the Columns menu:

To perform a join or an aggregation, to calculate a cumulative sum or other statistics, to perform a least squares fit, to calculate semi-variogram values according to a semi-variogram model, or to classify column values (slicing), you can use the corresponding commands on the Columns menu.

By filling out the appearing Join wizard, or the Aggregate, Cumulative, Statistics, Least Squares Fit, Semi-variogram or Column Slicing dialog box, the necessary syntax will be produced for you, and the results will be calculated.

Graphs:

From a table window, you can create graphs. You can either:

Graphs are shown in a graph window.

To create a graph:

For more information, refer to Graph window : functionality, Graph window : examples of graphs, Graph window : Graph management.

Confusion matrix:

To assess the accuracy of an image classification, you can cross a raster map containing extra ground thruth information with your classification result. When you display the cross table, you can display a confusion matrix: choose the Confusion matrix command from the View menu.

See also: