A quick tour of batch processing

Batch processing is a core functionality in geoprocessing. Many geoprocessing workflows include running the same tool against a large number of datasets—for example, converting shapefiles into file geodatabase feature classes or clipping a number of thematic layers to a study area. To eliminate the repetition, each geoprocessing tool has a batch mode.

To use batch, right-click a tool and click Batch. This opens the batch dialog box with one row of the batch grid, as shown below with the Clip tool.

Clip tool's batch dialog box and batch grid
TipTip:

Many geoprocessing tools have more than two parameters. To see as many parameters as possible at one glance, resize the tool dialog box. You can also change the width of the columns by dragging the column separator.

Entering parameters

You can enter parameter values by double-clicking the header row, as illustrated below.

Filling in a row

After entering values for each parameter, click OK on the tool dialog box. The batch grid row now contains the data you entered, as shown below.

Entering parameters using the tool's dialog box

Adding more processes

Each row in the batch grid represents a process—a tool plus the data needed to execute the tool. To add another process, click the Add button Add.

Batch grid with the added row

Double-click the row header to open the tool dialog box, or right-click an individual cell, click Open to open the parameter dialog box, then enter the cell value, as illustrated below.

Opening a parameter dialog box for a cell
Using Open to specify a dataset

Easier yet, since the Input Features parameter is for a dataset, right-click the cell and click Browse to go directly to the dataset.

Browsing to a dataset
Browsing to a dataset

After entering the value for Input Features, the batch grid appears as follows:

Second process added
Batch grid after adding data for the second process

Using the Check Values button

The Check Values button Check Mark validates the entire batch grid's content. Check Values also generates output dataset names.

After checking values

When you change any input to the batch grid, be sure to click the Check Values button Check Mark to validate and update the grid's content. Validation is also necessary if you change the scratch workspace for the batch outputs. Always validate the batch grid content before you execute the batch process.

Filling cells with the same value

In this example, all data is clipped to the same clip features. Rather than entering the same value in each Clip Features cell, you can use Fill, as illustrated below.

Using Fill

Executing

After filling the batch grid, check your values Check Mark to ensure that all data is valid, then click OK. Batch grid rows are executed sequentially. Execution messages can be reviewed in the Results window.

4/16/2013