Output Spatial Grid 1, 2, 3 (Environment setting)

Tools that honor the Output Spatial Grid 1, 2, and 3 environments will create feature classes that have the specified spatial index grids if those feature classes support spatial index grids.

To learn more about spatial indexes are used and applied, see A quick tour of setting a spatial index and An overview of spatial indexes in the geodatabase.

Usage notes

Dialog syntax

Scripting syntax

arcpy.env.spatialGrid1 = cellsize_value

arcpy.env.spatialGrid2 = cellsize_value

arcpy.env.spatialGrid3 = cellsize_value

Parameter

Explanation

cellsize_value

A numeric value for the grid cell size

spatialGrid1, spatialGrid2, and spatialGrid3 syntax
import arcpy

# Set the spatialGrid1, spatialGrid2 and spatialGrid3 environments
arcpy.env.spatialGrid1 = 50
arcpy.env.spatialGrid2 = 200
arcpy.env.spatialGrid3 = 0

Related Topics


3/13/2012