Create new Class or ID domain

from a String column

During Import, some columns may have been imported with the String domain. However, in any calculations later on, it is often easier to work with columns that have a Class or ID domain. In this dialog box, you can convert all items found in a String column to class names of a new Class domain or to IDs of a new ID domain. Optionally, the newly created domain can directly be applied on the string column. For more information on domains, see Basic concepts : working with domains or ILWIS objects : domains.

This dialog box appears:

Dialog box options:

Domain name:

Type a new name for the Class or ID domain that you wish to create.

Class:

Choose to create a Class domain, when the fields in the String column contain non-unique names or numbers.

Identifier:

Choose to create an ID domain, when the fields in the String column contain unique names or numbers.

Apply domain to column:

Select this check box, when you want to change the String domain of this column into the new Class or ID domain.

Clear this check box, to only create a new domain. Later on, you can create a new column which uses the new domain, for instance by using a TabCalc formula like:

col2=stringcol

where col2 is the new column and stringcol is the original String column. Make sure that the subsequent Column Properties dialog box, you choose the newly created class or ID column for the domain of col2.

See also: