- The keyword used at the command line or in scripts for this environment setting is Workspace.
- As a general rule, multiple users should not simultaneously access the same workspace or the same INFO directory.
- You can only edit one collection of dataset (one workspace) at a time. These can be geodatabase, ArcInfo coverage, or shapefile.
- Explicitly stating the current workspace will allow you to specify only the name of datasets used without the path to their location.
- Learn more about specifying general settings
- Learn more about environment settings
- Learn more about environment levels and hierarchy
An overview of the command line window
Workspace <workspace or feature dataset>
Data types for geoprocessing tool parameters
| Parameters | Explanation | Datatype |
|---|---|---|
| <workspace or feature dataset> | The location from which inputs are taken and outputs are placed when running tools. | Folder | Workspace |
Command line example
workspace d:\myWorkspace
OR
workspace d:\myWorkspace.mdbAn overview of scripting in geoprocessing
Workspace (workspace or feature dataset)
Data types for geoprocessing tool parameters
| Parameters | Explanation | Datatype |
|---|---|---|
| workspace or feature dataset (Required) | The location from which inputs are taken and outputs are placed when running tools. | Folder | Workspace |
Script example
import arcgisscripting
gp = arcgisscripting.create()
gp.workspace = "h:/workspace"