Label preprocessing

In the production of Thematic Label Map, after the setting of automatic line wrapping, the line wrapping text display is often unreasonable and unsightly. provided "Label preprocessing" "function can add a Separator in the specified text Select Fields according to the relevant segmentation principle, and use the preprocessed Result Field to make a Thematic Label Map.

The pre-processing principles of labels are as follows:

  • Maintaining and ensuring the alignment of wrapped multi-line text;
  • Priority is given to two-line alignment display;
  • Try to control each line of text at 4-8 words;
  • After the label wraps, if there is only one text left in the last line, it will be displayed in the previous line;
  • So that " (" is not displayed separately at the end of the previous line and ")" is not displayed separately at the beginning of the next line;
  • Complete data and words are displayed continuously without splitting into two lines;
  • Make the abbreviated "." Sign immediately follow the word being abbreviated.

Label preprocessing can solve the following problems of unattractive label display:

  1. Numbers and English words that should be completely displayed are split into multiple lines;
  2. Before Label preprocessing After Label preprocessing
  3. A half parenthesis appears at the end of the line, that is, " (" at the end of the line or ")" at the beginning of the line;
  4. Before Label preprocessing After Label preprocessing
  5. The abbreviated "." Sign in an English word does not follow the word being abbreviated;
  6. Before Label preprocessing After Label preprocessing
  7. The number of words in each line of text is too different to be beautiful, or there is only one word left in the last line;
  8. Before Label preprocessing After Label preprocessing
  9. Phrases connected by numbers and dashes are split into multiple lines.
  10. Before Label preprocessing After Label preprocessing

Operation steps

  1. If the text display cannot meet the user's requirements after the label made in the map is automatically wrapped Thematic Map Settings, you can click the "Thematic Map" tab-> "Label" grouping-> "Label and Processing" button. Preprocessing the Specify Field of the Thematic Label MapDataset to be made.
  2. In the pop-up Label preprocessing "dialog box, after specifying the Dataset and Select Fields to be processed, set the following parameters:
    • Save Result: The preprocessed Result Info can be saved in New Field or updated on the original field.
    • Label Font: It is recommended to use the same font type as Thematic Label Map. Label Font will affect the width of label wrapping.
    • Separator: Select or input an English character as a Separator, that is, insert the specified character at the appropriate position as a newline character.
    • Maximum length of division: set the maximum display length of characters in each line. It is recommended that the Max Length be 4-8. The priority of this parameter is after the processing principle, that is, each line of text does not exceed the maximum length of the label if the processing principle is met.
  3. After Label preprocessing succeeds, the field value of Result Field will be added with the specified newline character at the newline position, as shown in the following figure. The left side is the original Select Fields, and the right side is the Label preprocessing result with the newline character added.
  4. Label preprocessing results need to be better displayed through the Thematic Label Map. Set the expression of the Thematic Label Map as the preprocessed Result Field, and in the "Advanced" panel of the thematic map properties, Set " Specify a newline character" as the division symbol set during preprocessing, and the label will be displayed according to the preprocessing result New Line Display.