Skip to content

Field Dictionaries

Overview

Field dictionaries translate a list of data codes to human readable values for use in Feature Information tooltips, Labels, and Free Text Search Results.

📄 Note

Field Dictionaries can function with strings and numbers, although strictly both are treated as strings.

Field Dictionaries

To access field dictionaries:

  1. Go to Mapworks UI
  2. Click Mgt Console in the bottom left

Settings

  1. In the sidebar, click Field Dictionaries

Settings

Creating Field Dictonaries

Field Dictionaries can be manually created or imported from a CSV file.

To create a field dictionary:

  1. Click the Create Field Dictionaries icon on the right

Field Dictionaries settings

  1. Enter the dictionary values following the pattern (Code, Dictionary value)

Field Dictionaries settings

Alternatively, click Import Field Dictionaries to import the dictionary as a CSV file

Import CSV

When importing field dictionaries by CSV, multiple dictionaries can be imported as single file using the format pictured below:

Import CSV Example

Import CSV Import

Conditional Field Dictionaries

Multiple dictionaries can be assigned to a field with a condition that checks another field's value to determine which dictionary is used in each case.

Field Dictionaries settings

To create conditional field dictionaries:

  1. Create a basic field dictionary for each condition
  2. Select the dictionaries and click the Create Conditional Field Dictionaries button on the right to convert them to be used conditionally

Convert Conditional Dictionaries

  1. Enter a condition to each dictionary
  2. Click the Add button

Convert Conditional Dictionaries

  1. Check one of the boxes to decide what happens to the Basic Dictionaries after the conversion

    • Reference Basic Dictionaries — Creates duplicates of the original dictionaries
    • Delete Basic Dictionaries — Basic Dictionaries are not retained
  2. Assign all relevant conditional dictionaries to the dataset field

Inspect Conditional Dictionaries

Assigning Field Dictionaries

After creating a Field Dictionary, it must be assigned to the fields for which it is intended. This enables the reuse of a single Field Dictionary across multiple fields or datasets.

To assign field dictionaries:

  1. Select the dataset in Mapworks UI
  2. Click Assign Dictionaries

Map fields / Assign Dictionaries

  1. Click the magnifying glass next to a field

Assign Dictionaries

  1. Search for and select a dictionary from the drop-down list

📄 Note

Conditional Dictionaries are located further down the list, after the Basic Dictionaries.

Inspect dictionaries

  1. Click the Add button
  2. Click OK