HOW TO

Renumber the map grid index for a spatial map series in ArcGIS Pro

Last Published: October 4, 2023

Summary

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.

The PageNumber field with a missing page number.

Procedure

  1. Open the ArcGIS Pro project with the map grid layer in ArcGIS Pro.
  2. In the Contents pane, right-click the layer and click Attribute Table to open the layer's attribute table.
The Attribute Table option.
  1. Right-click the map grid index field in the attribute table and click Calculate Field. In this example, the 'PageNumber' field is selected.
The Calculate Field option.
  1. In the Calculate Field window, configure the parameters.
    1. For Input Table, ensure the preferred layer is prefilled. In this example, the input table is 'countyBoundaries_SpatialJoin'.
    2. For Field Name (Existing or New), ensure the selected field name is prefilled. Otherwise, select the field from the drop-down menu. In this example, the field name is 'PageNumber'.
    3. For Expression Type, select Python 3.
    4. For Expression, type the first code for the <field name> = expression box, and the second code under Code Block.
autoIncrement(1, 1)
rec = 0
def autoIncrement(start=1, interval=1):
    global rec
    if rec == 0:
       rec = start
    else:
       rec += interval
       return rec
  1. Click OK.
The Calculate Field window and the parameters.
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.

The consequential page number in the field after the calculation.

Article ID: 000031245

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 9x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options