2

I have a data set with 5 polygons. I would like to label each polygon with different values from different attribute columns. See screen shot. The first box on the left should pull its label from the column IP in the attribute table. The second box from the left should pull its label from the Easting column and so on. I just can not remember how to do this. Its been years since I did it last. This is one feature class and not 5 different feature classes.

enter image description here.

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Jun 24, 2021 at 13:21
1
  • 1
    Does your dataset only ever have 5 rows equating to the 5 polygons? Or are you showing us a subset of the true dataset? Commented Jun 24, 2021 at 16:47

3 Answers 3

1

You can set up label classes to label each feature (or set of features) with different label information. Each label class will include a set of features to be labeled, what column the label will be pulled from, and formatting for the label.

https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-text/displaying-labels-using-label-classes-to-label-fea.htm

answered Jun 25, 2021 at 4:36
1

I think a simplest approach is populating new field using field calculator, e.g:

def label(aList):
 fid = aList.pop(0)
 return aList[fid]

#----

label([ !FID!, !IP!, !EASTING!, !NORTHING!, !LENGTH!, !ANGLE!, !LABEL!])

enter image description here

Can be done with advanced labelling, but bulky, because every variable in it treated as text.

answered Jun 24, 2021 at 21:16
1
  1. Open attribute table of feature,

  2. add fields

  3. select column than right click, open field calculator

  4. enter image description here

  1. in this window, select type of function, for example, select String type, than in functions, double click to str, than in below window, in parenthesis, double click to FID field, it was generate a expression like this: Sqr ( [FID] )

  2. Click OK button

This generate FID labels to FIELD2

You can use other string type functions for generate labels using part of label, too.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Jun 24, 2021 at 14:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.