label expressions

1981
3
02-13-2011 09:56 PM
makseth
New Contributor II
Hi all friend
I use Tools in ArcGIS It call COGO but I have problem one point :
When I draw data already I Update COGO Attributes but In attribute The field: COGO Delta(55-39-11) it mean that 55 degree 39 minute 11 second
What I want to do like this: COGO Delta (55°39'11") in order I can show label 55°39'11".
Now day I try to write label expressions to display label 55-39-11 to 55°39'11" but I can not successful.I don�??t want to create field to calculate.
please help me
Tags (2)
0 Kudos
3 Replies
JonMorris
Occasional Contributor II
This expression should give the label you want:

Function FindLabel ( [COGO] )
  s = split( [COGO], "-" )
  FindLabel = s(0) & chr(176) & s(1) & chr(39) & s(2) & chr(34)
End Function
0 Kudos
SaniTakwim
New Contributor
I am new with ArcGIS 10.1 - Can somebody enlighten me on how to use the code :-

Function FindLabel ( [COGO] )
  s = split( [COGO], "-" )
  FindLabel = s(0) & chr(176) & s(1) & chr(39) & s(2) & chr(34)
End Function

in a step by step ways to enable a new attribute to be created or replaced on the 180-0-0 format to the degree minute second format. Help very much appreciated. TQ

Sani
0 Kudos
SaniTakwim
New Contributor
I'm a novice in programming and would appreciate if somebody can provide me with a Python code that can convert the values in my cogo "Direction" field in the "180-0-0" format to the degree minute second format so that I can used the labels when printing out my traverse map. TQ.

Sani
0 Kudos