Adjust Line Label Rules and Style

This tutorial covers the labeling configuration for the source layers Highways_line, Interstates_line and Streets_line. Highways and interstates will be labeled using highway and interstate symbol shields—notice that these layers contain double-lines for each road (divided highways).

Label lines with symbols

1.In the MAP LabelPro dialog box, click the Highways_line layer name in the Source column to highlight the row.

2.Click the Label source drop-down list and choose HIGHWAY_NUMBER.

3.Change the Output layer to HIGHWAY_INTERSTATE_labels.

4.Set the Priority to 2.

5.Click the Style drop-down list and choose Highway_Label_Style. Click the Edit button to open the Style dialog box and examine its settings. This style was predefined.

highway_styles

In addition to the regular font settings, line labels can also be labeled with symbols. In this case, the Label with symbol option is enabled. Symbol files (*.lsf) contain a series of symbols. In the example above, the United States Interstate symbol is selected from the generic_shields.lsf symbol file. The symbol size is set to a height of 0.25 inches. The symbol font color is set to white so it can be legible against the blue symbol.

6.After reviewing the Style settings, click OK to close it.

7.Click the Rules drop-down list and choose Highway_Label_Rule. Click the Edit button to open the Line Rules dialog box and examine its settings. These rules were predefined.

highway_rule_placement highway_rule_grouping

highway_rule_fitting highway_rule_conflict

With these settings, the highway labels (and shields) will be placed in the middle of each line length and on the centerline, with a font reduction (if necessary). The Divided Highways setting recognizes lines that are parallel and share the same name (as specified by the selected attribute). In such cases, it places only one symbol instead of two or more. The Allow labels to cross lines option needs to be enabled because double highway lines are very close in proximity and the labels need to cross the lines. See more information on line labeling rules.

information Evaluation users will see a different result than a licensed user. Because of the text scrambling, the divided highways cannot be recognized. Below is an example:
resultwithlicense resultwithdemo
Left: Result with MAP LabelPro license. Right: Result with evaluation license.
 

8.After reviewing the Line Rules settings, click OK to close it.

9.Click the Suppression layer drop-down list and choose SUPPRESSED_labels.

The settings for the Highways_line layer are completed. Continue with the settings for the Interstates_line layer.

10. Click the Interstates_line layer name in the Source column to highlight the row.

11. Click the Label source drop-down list and choose INTERSTATE_NUMBER.

12. Change the destination text layer to HIGHWAY_INTERSTATE_labels.

13. Set the Priority column to 2.

14. Click the Style drop-down list and choose Interstate_Label_Style. Click the Edit button to open the Style dialog box and examine its settings. This style was predefined.

The United States Route symbol is selected from the generic_shields.lsf symbol file. The symbol size is set to a height of 0.25 inches.

interstate_style

15. After reviewing the Style settings, click OK to close it.

16. Click the Rules drop-down list and choose Interstate_Label_Rule. Click the Edit button  to open the Line Rules dialog box and examine its settings. These rules were predefined.

The labeling rules for the interstates are the same as for the highways. Also, the previous note about text scrambling applies for evaluation users.

17. After reviewing the Line Rules settings, click OK to close it.

18. Click the Suppression layer drop-down list and choose SUPPRESSED_labels.

The label settings for the interstate roads are now complete. Continue with setting up street labels.

Label lines with text only

19. In the MAP LabelPro dialog box, click the Streets_line layer name in the Source column to highlight the row. Keep STREETNAME as the Label source attribute.

20. Click the Output layer drop-down list and choose STREET_labels.

21. Set the Priority column to 2.

22. Click the Style drop-down list and choose Street_Label_Style. Click the Edit button to open the Style dialog box and examine its settings. This style was predefined.

street_style

Notice that this time Label with symbol is not checked.

23. After reviewing the Style settings, click OK to close it.

24. Click the Rules drop-down list and choose Street_Label_Rule. Click the Edit button to open the Line Rules dialog box and examine its settings. These rules were predefined.

street_rule_placement street_rule_grouping

street_rule_fitting street_rule_conflict

Like highway and interstate labels, street labels will be placed in the middle of each line length and on the centerline, with an eventual font reduction if necessary. The ability to overhang is enabled here.

The street lines in this file are not joined. For example, each street is made of many line segments that all share the same STREETNAME attribute. To avoid repeating the name of connecting lines, the Label joined feature rule is enabled. MAP LabelPro recognizes that connecting lines sharing a same name need to be labeled only once.

information Evaluation users will see a different result than a licensed user due to the text scrambling. Names are not recognized as being the same and labels will be created for each line segment rather than one per street.
resultwithlicense2 resultwithdemo2
Left: Result with MAP LabelPro license. Right: Result with evaluation license.

25. After reviewing the Line Rules settings, click OK to close it.

26. Click the Suppression layer drop-down list and choose SUPPRESSED_labels.

This completes the label settings for all line layers. Do not close the MAP LabelPro dialog box as the configuration of the Land_area layer still has to be done. If you want to save the current configurations, click the Save button. You will have to reopen the MAP LabelPro dialog box to continue.

27.  Continue to Adjust Area Label Rules and Style.

Copyright © 1995-2020 Avenza Systems. All rights reserved.

 

Last updated: 4/10/2019