Legend Text from Pass-Through Metadata Keys - MapInfo_Pro - 2023

MapInfo Pro Help

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapInfo Pro
Version
2023
Language
English
Product name
MapInfo Pro
Title
MapInfo Pro Help
First publish date
1985
ft:lastEdition
2023-09-12
ft:lastPublication
2023-09-12T16:39:16.995549

For data that has feature codes, but no feature description, there is additional metadata support, called Pass-Through Keys. The keys map column values to descriptive text used in the legend.

Table metadata contains pass-through text for legends if the following criteria are met:

  1. The metadata label expression is a simple column reference.
  2. A pass-through prefix key exists in the metadata that is the result of appending the column reference to the top-level "\legend" key.
  3. For example, given the following legend label expression key:
	"\legend\label" = "CFCC"

The following pass-through prefix key must also exist in metadata:

	"\legend\CFCC"

The prefix key may exist as a separate line in metadata:

	"\legend\CFCC" = ""

If the above two criteria are met, then the legend creation code looks for legend text in additional 'pass-through' metadata keys that are the result of appending evaluated label expressions to the prefix key. The values for each key replace the original expression value:

	"\legend\CFCC\F32" = "Church"
	"\legend\CFCC\F34" = "Hospital"
	"\legend\CFCC\value_n" = "legend text used in place of CFCC value_n"

This results in a legend with the descriptive text "Church", "Hospital"' etc., rather than "F32", or "F34".

See Also:

Working with a Thematic Map Legend

MIF Import/Export Information

Metadata Pass-through Key Limitations

Once a Legend Frame that uses pass-through metadata keys for text is created, changes to the pass-through key values do not display in a Legend Refresh. They will display the next time the Legend Frame is recreated.