Create a domain

A domain contains the set of valid IDs, class names or values that can be used in a map or a table. All ILWIS data objects (maps, tables, columns) need a domain. A representation can be linked to a domain, so that maps using the same domain can be displayed with the same colors.

This dialog box appears:

Dialog box options:

Name:

Type a new name for the domain.

Domain type:

Select the domain type:

Class:

Create a class domain when the elements in your map are classes which occur in several places in your map (e.g. soil units: clay, sandy loam). Subsequently, the domain Class/ID editor is opened where you can add all classes of this domain.

Group:

Only select 'Group' if you want to create a domain Group with which you can permanently slice or classify the values in an image or in a value map. The domain Group editor is opened where you can add the upper boundary values of groups, group names, etc. See also tip 5 below.

Identifier:

Create an ID domain when the elements in your map are uniquely identified (e.g. cadastral plots: 1024, 1025).

Nr. of items:

Type a value for the number of items that should be automatically added to this ID domain.

  • When you accept the default number of items 0, the domain Class/ID editor is opened; you have to add IDs yourself.
  • When you type a value, the specified number of IDs are automatically added to the domain as numbers starting from 1. All IDs will be preceded by the prefix which you have to specify in the Prefix box.

The maximum number of items that can be shown in the domain Class/ID editor is 100 million.

Prefix:

Type a (short) text that will be used as the prefix for all numbered IDs which will be automatically added to this domain. The IDs in this domain may appear for instance as My Prefix 1, My Prefix 2, etc. The default prefix is nr. In a prefix, it is allowed to use spaces and characters as @, #, etc., the colon character : however may not be used in a prefix.

Bool:

Create a Bool domain when the elements in your map may only use 2 possible codes (e.g. "Suitable" and "Not Suitable") or may be undefined. Subsequently, the Edit Bool domain dialog box will be opened.

Value:

Create a value domain when the elements in your map represent measurable values (e.g. height, concentration).

Min Max:

Type values for the minimum and maximum value of this domain. This is also called the value range.

The specified minimum and maximum values of a value domain will be used as the default minimum and maximum values for any new maps or columns that use this domain.

When you create a representation for this value domain, the specified minimum and maximum values will determine the absolute lower and upper boundaries of that representation.

Precision:

Type a value for the precision of this domain. By specifying a precision of 0.01, all values will use 2 decimals; by specifying a precision of 25, all values will increase or decrease in steps of 25, etc.

The combination of specified values for minimum, maximum and precision implies the store type of raster maps that use this domain.

Width:

Specify a value for the default width (i.e. the number of characters) to be used in other parts of the software by lists which show class names or IDs. By default, class names in class domains will be shown in 15 characters and IDs of an ID domain will be shown in 6 characters. If you are planning to use longer class names or IDs, you specify a larger width value. This domain width is used for instance in map editors when you are assigning class names/id's to points, segments, polygons and in tables when editing fields of class/id columns. The domain width can also be set in the Properties of a Class/ID domain.

Description:

Type a description for the domain. The description is visible on the status bar of the Main window when moving the mouse pointer over the domain in the Catalog.

Tip 1:

It is advised not to create more than one domain for:

Instead, select the same domain as used before. It is not necessary that all IDs, class names or values actually occur in each map.

Tip 2:

Similarly, when creating an attribute table for a map, you should not create a new domain for the attribute table; the attribute table should use the same domain as the map to which the attribute table is related.

More tips:

  1. When calculating with value maps, you can generally accept the default system domain Value.
    You can select or create a user-defined value domain when the values have a specific meaning, i.e. when values are known to be valid only between certain minimum and maximum values, and when the values should always use a certain precision.
  2. When creating a new class or group domain, a new representation class is automatically created. This representation has the same name as the class or group domain and it will be used as the default representation for this domain. You can edit the colors etc. of the classes in the Representation Class editor.
  3. When creating a new value domain, the default representation for that domain will be system representation Pseudo.

  4. To create your own representation for a value domain, you can:
  5. The Create Representation dialog box follows.

    Representations for value maps are edited in the Representation Value/Gradual editor.

  6. To permanently slice an image or to permanently classify a map, you have to create a domain Group and fill it with upper boundary values and class names. To apply the domain Group, you have to use the Slicing operation or the CLFY function on the command line.
    To interactively slice an image or to interactively classify a map, you don't have to create a domain Group. You can simply create a new representation value or gradual for an image or a value map. When you display the image or value map with such a representation, the value map appears as if it was sliced but the original values are retained.
    Both the interactive and the permanent method are described in How to slice an image and How to classify a map or column.

See also: