Table View - ObjectVision/GeoDMS GitHub Wiki

User Guide GeoDMS GUI - table view

Table View

All data items can be visualized in a table view. One table shows data items or a set of data items with the same domain unit. The table is the default view for items that cannot be visualized in a Map View. These items are:

  • Data items whose domain unit cannot be georeferenced. The TreeView shows them with the icon:
  • Containers with data items as subitems (first level subitems). The first data item of the container determines the domain unit of the table. All data items with this same domain unit are added to the table. The TreeView shows these containers with the icon:

example of a table for a selection of municipalities in a region

This table shows 4 columns (attributes) for the domain unit cbs_gemeente, a selection of 13 municipalities. The title of the view shows the name and cardinality of this domain after the name of the view, as in the title of a Map View: TableView #cbs_gemeente = 13.

A table with attributes always gets an extra first column, called id. This column shows the [index numbers]] of the domain. A table of [parameters does not get this column.

In this table, the index number is followed by the name of the municipality, between brackets. To get this, configure a label string attribute as [subitem]] of the domain unit. Tables that show [relations to this domain also show these labels.

activate table view

As with the map view, you can open a new table for a tree item. You can also add the tree item to a table that is already open, if that table has the same domain unit as the requested data item. The following table shows the possible actions to show a tree item in a table, and their results.

action no active table for the requested domain active table for the requested domain active table for other domain
Double click on active Tree Item (if Table is default viewer, indicated by the or icon) New Table window with the requested data item or all the subitems at the first level of the found domain. Data item or subitems at the first level with the same domain unit are added to the active table. New Table window with the requested data item or all the subitems at the first level of the found domain.
Main/pop-up menu option Default View (only if the Table is the default viewer, indicated by the or icon) on active Tree Item New Table window with the requested data item or all the subitems at the first level of the found domain. Data item or subitems at the first level with the same domain unit are added to the active table. New Table window with the requested data item or all the subitems at the first level of the found domain.
Main/pop-up menu option Table View on active Tree Item New Table window with the requested data item or all the subitems at the first level of the found domain. Data item or subitems at the first level with the same domain unit are added to the active table. New Table window with the requested data item or all the subitems at the first level of the found domain.
Ctrl-D on active Tree Item New Table window with the requested data item or all the subitems at the first level of the found domain. Data item or subitems at the first level with the same domain unit are added to the active table. New Table window with the requested data item or all the subitems at the first level of the found domain.
Drag and drop active Tree Item to view area/active Table View New Table window with the requested data item or all the subitems at the first level of the found domain. Data item or subitems at the first level with the same domain unit are added to the active table. New Table window with the requested data item or all the subitems at the first level of the found domain.

working with tables

To change the width of a column, move the mouse to the header row, on the border between two columns. A mouse pointer with two arrows appears. Press the left mouse button, keep it pressed and move the mouse to the left or the right.

To change the order of the columns, drag and drop a column header. Click on a header with the left mouse button, keep the button pressed and move the mouse to the new position.

In the table, a cell or a column can get the focus. Click on a cell or a column header to set the focus. You can also use a focus rectangle to set the focus to multiple cells. First set the focus to one cell, then hold Shift and click another cell, or use Shift with the arrow keys or the mouse wheel, to enlarge the focus rectangle (colored black). A click without Shift starts a new focus. Inside a focus rectangle, one cell is always the focus cell (colored blue).

Double click on a cell to open a ValueInfo window.

menu

A right mouse click on the label of a column opens a pop-up menu for that column. In the option names, layer is the name of the data item. The menu has the following options:

  • Sort on layer: sort the values in ascending or descending order.
  • Relative Display (as % or total): show the numeric values as a percentage of the total.
  • GoTo (Ctrl-G): take clipboard contents as row number and go there: paste the contents of the clipboard, read it as a row number and jump to this row in the table.
  • FindNextValue (Ctrl-F): take clipboard contents as value and search for it, starting after the current position: paste the contents of the clipboard and read it as a search value. Then jump to the first cell in the table with this value, starting from the current position.
  • Value info for row x of layer: open the value info for the cell with the focus.
  • Remove layer: remove the column from the table.
  • Ramp Values: ramp the values of a distribution. This is mainly relevant in classifications. The option is only available for numeric data items that are not derived and have more than one entry.
  • Aggregate by ...: in a grouped table, choose how the values of this column are aggregated per group; see group by and aggregation.
  • Also group by null values, or Stop group by null values: whether the rows with a null key form a group of their own; see group by and aggregation.

group by and aggregation

A table can be grouped by one or more of its columns. It then shows one row per distinct key, and every other column is aggregated per group. This is the table view counterpart of Select ... From ... Group By ... in a configuration, meant for a quick look at the data: the grouped and aggregated columns are calculated items of the view, not part of the configuration.

To group, set a focus rectangle over the key columns, as described in working with tables: from a cell of the first key column to a cell of the last one. Then press the group-by tool .

The tool is available when the table has more than one row; pressing it again returns to the ungrouped table. The title of the view then reads #domain = n, grouped to m rows by expression, with n the number of rows of the domain, m the number of groups, and the expression that defines the key.

The key columns get a green background, a darker shade for each further key column. With one key column the groups are its distinct values. With more than one they are the distinct combinations, formed by joining the values as text: String(a) + '_' + String(b).

For the grouped table the view creates a unit GroupBy with the expression unique(key) and, as its subitem, the relation per_Row from the domain of the table to it, rlookup(key, values). The aggregations use this relation.

By default a row whose key is null belongs to no group. The option Also group by null values in the pop-up menu of the table uses unique_with_null and rlookup_with_null instead, so that those rows form a group of their own; Stop group by null values switches back.

The other columns show one aggregated value per group. Their header names the method, as in sum(population), and their cells cannot be edited. Each column starts with a default method that fits its values:

values of the column default method
polygons, arcs and points bounds
bool all
uint2 and uint4 modus
other numbers sum
the id column count
text nr_undefined_values

The submenu Aggregate by ... in the pop-up menu of a column lists the methods that apply to it, under the name of the operator they use. Each method writes a calculation rule with the column as first argument and per_Row as relation:

method what it gives per group offered for
sum the sum, as float64: sum(float64(a), per_Row) numbers
[min]], [[max]] ](/ObjectVision/GeoDMS/wiki/the-lowest-or-highest-value;-for-polygons-and-arcs-the-lowest-corner-of-their-bounds,-min([[lower_bound)(a), per_Row), or the highest corner all values except bool, uint2 and uint4
first, last the value of the first or last row of the group all values
asItemList the values as one comma-separated text values that are not polygons or arcs
dms_union_polygon the dissolve of the polygons of the group polygons
[mean]] ](/ObjectVision/GeoDMS/wiki/the-mean;-for-polygons-and-arcs-the-mean-of-their-[[centroid)s numbers, points, polygons and arcs
sd the standard deviation numbers
count the number of non-null values integers and points
nr_undefined_values the number of null values: sum(not(IsDefined(a)), per_Row) values that are not polygons or arcs
modus, modus_count, unique_count the most frequent value, how often it occurs, the number of distinct values integers
entropy, average_entropy the entropy of the values integers
bounds the lowest and the highest value as text, '[min...max]'; for polygons and arcs the corners of their bounds all values except bool, uint2 and uint4
any, all whether one or all of the values are true bool
frequency_table, frequency_table_with_null the distinct values with their number of occurrences, as text; the second also counts the nulls values that are not polygons or arcs; the second only for a value type that has null

Integers here include integer points such as ipoint. A count is written as count_uint8 ... count_uint64, and likewise for the other counting methods, whichever is wide enough for the number of rows of the table.

tools

tool description
save to file as semicolon delimited text.
copy as semicolon delimited text to the clipboard.
copy the visible contents as image to the clipboard.
show the first selected row.
select row(s) by mouse-click (use Shift to add or Ctrl to deselect).
select all elements in the active layer.
deselect all elements in the active layer.
show only selected elements.
group by the highlighted columns.