ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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

  • Usage notes
  • Dialog syntax
  • Scripting syntax

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

  • One to three grids will be created for output feature classes, depending on the type of geodatabase and geometry storage type.
  • The first, or lowest, grid level has the smallest cell size.
  • If you only want one grid, set all others to zero (0).
  • If more than one grid is used, each successive grid must be set at least three times larger than the previous level.
  • Note:

    If you are unfamiliar with creating spatial index grids, use the default value provided, as creating a poorly defined grid will increase the time needed to complete a spatial search.

Dialog syntax

  • Output Spatial Grid 1—A numeric value for the grid cell size 1
  • Output Spatial Grid 2—A numeric value for the grid cell size 2
  • Output Spatial Grid 3—A numeric value for the grid cell size 3

Scripting syntax

arcpy.env.spatialGrid1 = cellsize_value

arcpy.env.spatialGrid2 = cellsize_value

arcpy.env.spatialGrid3 = cellsize_value

ParameterExplanation

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

  • An overview of geoprocessing environments
  • Environment levels and hierarchy
  • Setting geoprocessing environments
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal