Sequential Numbers

In ArcMap, here is how you can calculate sequential numbers using Field Calculator.

Set field calculate to python.

Paste this in pre logic script:

rec=0
def autoIncrement():
 global rec
 pStart = 1 
 pInterval = 1
 if (rec == 0): 
  rec = pStart 
 else: 
  rec += pInterval 
 return rec

Paste this in second box

autoIncrement()

Check out one of my other posts about how to Convert from Degrees Minutes Seconds to Decimal Degrees in Python here.

Happy GISing!
Lindsy Hales Bentley

Popular posts from this blog

How to Create a 3D Surface

How to Pull a House Number Out of an Address

3D GIS