Creating a new field with attributes incrementing by 1


pre-logic script code:

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



Comments

Popular posts from this blog

Free Open Street Map data (i.e.shapefiles etc.) for the Philippines

Free Philippine Administrative Boundaries shapefile

University of the Philippines Diliman Campus