Domain Class/ID editor

Add Item

 

Add a new class or identifier to this domain. You can enter a name, and optionally a code and a description.

This dialog box appears when in the Domain Class/ID editor:

Dialog box options:

Name:

Type a new class name or a new identifier. Class names and identifiers can be as long as you like.

Note: Class names or IDs may contain any characters, except the % character.

You will see the class names or IDs when pressing the left mouse button (Info) in a map window; you will see the class names or IDs as record names when creating an attribute table for this domain (or for a map using this domain); when enclosed in double quotes, you can use the class names or IDs in calculations. You can also show class names or IDs in a legend.

Code:

Optionally, type a short code for this class name or identifier.

Note: In codes, colons : and percentages % may not be used.

When displaying a map which uses this domain in a map window and pressing the left mouse button (Info), and in Pixel Info, you will see the code and the class name or ID as code: class name or code: Identifier. When enclosed in double quotes, you can use codes in calculations. In a legend, you can optionally show codes.

Description:

Optionally, type a longer description for this class name or identifier.

You can use descriptions for example in a legend.

Limitations:

Tips:

  1. To change the order of class names or identifiers in this domain, set the sorting to Manual Ordering and drag domain items to a new position in the list.
  2. To edit the colors of classes, you can choose the Open Representation command from the File menu. The Representation Class editor will be opened showing the representation that is currently linked to this domain. An ID domain does not have a representation.
  3. If you like, you can fill out the Name field in this dialog box as code:name.
  4. You can increase or decrease the number of characters shown by lists from which you can choose a class name or an ID, for instance when editing units in a map editor and when editing fields of class columns in a table, by setting the 'width' in the properties of the domain. The default width for a class domain is 15, the default width for an identifier domain is 6.
  5. In MapCalc or TabCalc calculations, you can use class names or identifiers as well as codes. In calculations, class names, identifiers or codes should be enclosed in "double quotes".
  6. For advanced users: you can also add class names to a class domain or identifiers to an identifier domain by using the additemtodomain script command on the command line of the Main window. For more information, see Appendices : ILWIS script language (syntax).

See also: