AnsweredAssumed Answered

Labeling a line with length using Maplex labeling engine

Question asked by michaelhutchison on Aug 23, 2018
Latest reply on Aug 23, 2018 by dkwiens

Hey,

 

I'm trying to label a line feature with the length in feet (ArcGIS defaults to meters).  So I need to convert the SHAPE.LEN to feet and I want to round to the nearest whole number. This is what I have so far, which is just a conversion to feet.  I'm relatively inexperienced in Python.  I'd still need to round to the nearest whole number.

 

def FindLabel ( [SHAPE.LEN] ):
  return round(float([SHAPE.LEN]), 0) * 3.280839895

 

ex of return. 45.93175853

 

Also, is it possible to label in between vertex's of the same line?

 

Thanks for the help!

 

Mike

Outcomes