Reading Labels from a MapInfo Workspace File (MWS) - 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
Last updated
2023-09-12
Published on
2023-09-12T16:39:16.995549

MapInfo Pro reads basic label information from MWS files created in MapInfo Pro or MapXtreme's Workspace Manager.

The following is a list of label properties that can be read in:

  • Label expression if it is a simple column identifier
  • Font style
  • Callout line style
  • Label placement (center center; centre left, etc.)
  • Label orientation (horizontal, rotated, curved)
  • Label offset
  • Label visibility including zoom range
  • Label adjustments like discarding overlaps, labeling partially visible objects, etc.
  • Custom labels - all properties

The MWS schema supports more options for labels than MapInfo Pro supports. Therefore, MWS files created with Workspace Manager may lose some label information when imported into MapInfo Pro.

MWS Element/Option Description

LabelLayer Visibility

Label sources inherit the parent label layer visibility.

LabelSource Visibility

If there are multiple LabelSources for one feature layer without zoom enabled, then the top visible label layer is added.

If there are no visible label layers, then the top invisible label layer is added.

If there are multiple LabelSources with zoom ranges, then one label layer is chosen as a base label layer and all others are added as label overrides.

The logic for finding a base label is:

  • When there are visible layers without zoom range, set the top visible layer without zoom range as a base layer
  • Or else when there are visible layers with zoom range, set the last visible layer with zoom range as a base layer.
  • Or else when there are no visible layers, set the top non-visible layer without a zoom range as the base layer
  • Or else set the last non-visible layer with zoom range as the base layer.

Other label layers are added as label overrides when:

  1. They have zoom range information and zoom ranges are enabled.
  2. The ranges are not completely within any previous label override's zoom ranges.

If the range intersects (but not completely within) all previous override ranges, then the label override is added; in this case, ranges are modified to not override previous label overrides. If the range is wider on both ends, then two overrides are added instead of one.

The base label zoom is the union of all override zoom ranges.

LabelProperties LabelVisibility

This is on the AutoLabel tab in the Workspace Manager.

The "Create labels automatically" option in the Workspace Manager maps to auto labels On/Off ("Label Auto On/Off" in MapBasic).

There is no direct mapping of the zoom range in MapInfo Pro, so this is ignored.

Modifier Edited Labels

(LabelSelectionTheme Visibility)

Visible custom labels are imported into MapInfo Pro. Only the custom labels that are visible are imported.

Thematic Modifier

No mapping; there is no support for label themes.