HOW TO
A map grid is a rectangular polygon feature used as an index to specify pages in a spatial map series. At times, it is necessary to renumber the grid index after removing grids from a map, as it causes the index to be non-consequential. Renumbering the map grid index ensures the data is organized and updated for use. This article provides the workflow to renumber the map grid index after deleting grids in ArcGIS Pro.
The attribute table in the image below shows the map grid index number 3 is missing in the PageNumber field when a grid is deleted.



autoIncrement(1, 1)
rec = 0
def autoIncrement(start=1, interval=1):
global rec
if rec == 0:
rec = start
else:
rec += interval
return rec

Note: The Calculate Field tool permanently modifies inputs by changing values in the attribute fields. To avoid having permanent changes applied, toggle Enable Undo on in the Calculate Field window before running the tool.
The image below shows the map grid index field consequentially renumbered in the attribute table.

Article ID: 000031245
Get help from ArcGIS experts
Start chatting now