Map and Table Calculation

CODE( ) function

Returns the code of an item in a class or ID domain.

Syntax

CODE(String)

Input

String is a column with a Class or ID domain, or the Class or ID domain of a table (%K)
Domain type: Class or ID domain

Output

CODE returns: a string
Domain type: system domain String

Notes:

Tip:

When the definition symbol = is used, a dependent output column is created; when the assignment symbol := is used, the dependency link is immediately broken after the output column has been calculated.

Usable in

TabCalc

Example

TabCalc example:

InCol = %K

OutCol = CODE(InCol)

OutCol = CODE(%K)

 

InCol

OutCol

Accumulation of debris on slope

ad

Active landslide

al

Alluvial fan (flooding possible)

af

Alluvial fan (no flooding possible)

an

?

?

Glacial lake

gl

Glacial valley

gv

Heavily eroded area

he

Old landslide

ol

Note:

The domain of a table simply shows names only.

See also: