Label both ends of a polyline

4788
4
01-26-2012 04:40 PM
SeanEbert
New Contributor
Is there a way to label both ends of a polyline?  Right now I am labeling one end, converting the labels to annotation then repeating for the other end of the line. There has to be a better way!!!
Tags (2)
0 Kudos
4 Replies
SeanEbert
New Contributor
Found out how.
0 Kudos
JonMorris
Occasional Contributor II
Would you like to share it with us? 🙂

For those that are interested, one way to label both ends of a polyline is to set up two label classes, and under 'Label Offset', set 'Position Label' to 'Along line from Start' in one label class and 'Along line from End' in the other.
0 Kudos
by Anonymous User
Not applicable

In Pro:

  • Select the line layer in the table of contents.
  • Click the Labeling tab
  • In the Label Class group, select the field that you want to use for labeling the beginning of the line.
  • In the Label Placement group, expand the Label Placement Properties.
  • Click the Position tab, expand the Placement properties, and choose "Before start of line" for the "Offset along line" parameter.
  • Go back to the Label Class group, click the dropdown for Class, and choose "Create label class". Enter "Class2"
  • Select the field that you want to use for labeling the end of the line.
  • Repeat the steps for label placement, but select "After end of line" as the "Offset along line" parameter.

 

In ArcMap:

  • Right click on the line layer in the table of contents and click Properties. Then select the Labels tab.
  • Change the Method to "Define classes of features and label each class differently."
  • Click Rename to rename the default class to "Class1" (or a different name of your choice)
  • Choose the StartX attribute (or the attribute that you'd like to use at the beginning of the line) as the Label Field.
  • Click Placement Properties under Other Options
  • Choose At Start for the Location parameter. Click OK.
  • Click Add.. under the Class parameter.
  • Name the new class "Class2."
  • Choose the EndX attribute (or the attribute that you'd like to use at the end of the line) as the Label Field.
  • Open Placement Properties again and choose At End for the Location.
  • Click OK.
HanlieLundie1
New Contributor

This is very helpful - thanks Cody.

I just have one problem. If you go to Layout view in Arcmap, and the extend of the polylines is greater than that of the data frame, you do not see the labels. Am I doing something wrong?

0 Kudos