Basic concepts

Working with domains

A domain defines the values, classes or identifiers that can be stored in a map or column. When you create a map or column, you also have to select or create a suitable domain for that map or column. When you create an attribute table for a map, the table must use the same domain as the map to which the table refers; the domain provides the link between the map and the table. Further, a domain uses a certain representation which defines the graphical representation of a map, e.g. the coloring.

All ILWIS data objects have a domain. One domain can be used for several data objects. To view the domain of a data object, open the properties of that data object. To list existing domains in the Catalog, refer to How to customize the Catalog.

The four main types of domains are:

-

ID

for data objects that contain unique identifiers (e.g. plot 1024, plot 1025)

-

Class

for data objects that contain classes (e.g. soil units: clay, sandy loam)

-

Value

for data objects that contain measured, calculated or interpolated values (e.g. height, concentration)

-

Image

for satellite images and scanned aerial photographs that contain values between 0 and 255.

Domains for new maps:

When you create a new map, you should also select or create a suitable domain for the map. As described above, you can:

You can directly add classes to a class domain when you create the domain, but you can also add classes to the domain when actually editing or digitizing the map. Identifier domains can automatically be filled with numbers, but you can also add the identifiers yourself.

However, when working for instance with multiple land use maps of different years, the idea is that you create only one class domain Landuse in which you enter all possible land use classes of all years. This domain can then be used for all your land use maps and related attribute tables. It is not necessary that all classes in the domain actually occur in each map. As a domain is linked to a representation, the use of one domain for maps of the same theme ensures that these maps are also by default displayed in the same colors.

Domains for attribute tables and columns:

For maps using a class or ID domain, you can create an attribute table. You have to make sure that the table uses the same domain as the map because the domain provides the link between them. In the table, the class names or IDs of the domain appear on the record buttons. You can add attribute columns to the table which contain additional information on the classes or IDs in the map. When you create columns in the attribute table, you may create suitable domains for each column; for general use of values however use the system domain Value.

Domains for value maps and value columns:

When calculating with value maps and value columns, you can usually accept the default system domain Value and adjust the value range and precision for the output map if necessary.

You only need to create a user-defined value domain (e.g. Height, pH, Yields, or concentration values):

A number of value domains are available in your ILWIS\SYSTEM directory:

Value, Count, Distance, Min1to1, NILto1, NOAA, Perc, Radar. For calculations on value maps, you can of course also use the Image domain.

Other domain types:

-

Bit

system domain Bit is available for raster maps and columns that have to store values 0 and 1.

-

Bool

system domain Bool and system domain Yes/No are available for maps and columns that have to store True, False or undefined values.

-

Picture

for raster maps which contain merely colors, the pixels have no meaning, for instance color composites or scanned pictures.

-

Color

for raster maps that are stored in 24-bit colors.

-

Group

a user-defined list of values and class names that can be used to classify a value map (similar to the ILWIS 1.41 classify tables)

-

String

system domain String is available for columns that contain text.

See also: