A whirlwind tour of geoprocessing |
|
Release 9.2
Last modified October 30, 2007 |
![]() ![]() ![]() Print all topics in : "Geoprocessing" |
What follows is a high level overview of the geoprocessing framework—the collection of user interface components that allow you access and execute tools. For further details, see Geoprocessing tools and Geoprocessing framework
ArcToolbox is your primary entry point into the geoprocessing framework. Tools are organized into toolboxes and toolsets, and ArcGIS ships with over 400 tools organized into a dozen or so toolboxes, providing a rich set of functionality across a wide range of disciplines.
In ArcCatalog, ArcMap, ArcScene, and ArcGlobe, you can view the ArcToolbox window by clicking the Show/Hide ArcToolbox window button on the Standard toolbar. The ArcToolbox window is tree-view user interface that organizes all the geoprocessing tools.
You can create your own tools, organize them into new toolsets and toolboxes, and share them with any ArcGIS user.
Learn more about ArcToolbox
To open the tool's dialog box, double-click the tool in the ArcToolbox window or right-click the tool and click Open.
After filling out the tool's parameters on the dialog box, clicking OK will cause the tool to execute. In this example, the Clip tool will clip features from the Streets layer. The output feature class, Streets_Clip will contain only those features that fall within the StudyArea polygons. The output feature class will be automatically added to the ArcMap table of contents.
Learn more about using tool dialogs
The Command Line window is another method for executing a tool. Here you type the name of the tool followed by its parameters. The text you type is called the command line. Pressing the Enter key executes the command line.
Learn more about the Command Line window
Geoprocessing allows you to chain together sequences of tools, feeding the output of one tool into another. You use a geoprocessing model to chain tools together, and ModelBuilder, shown below, is how you create models.
This model was constructed by creating a new, empty model and dragging and dropping tools from toolboxes into the ModelBuilder window, then filling out their parameters.
To create a new model using ModelBuilder, right-click the toolbox or toolset to which you want to add the model and click New > Model, as shown below.
The most important thing to note here is that
models are tools
. They behave exactly like all other tools in the toolbox. You can execute them using their dialog box or in the Command Line window, as shown below. Since models are tools, you can embed models within models.
Learn more about building models
You can use a standard scripting language (such as Python, VBScript, and JScript) to create new tools. The illustration below shows a tool based on a Python script. This script does the same work as the Clip and Buffer model show above. (In fact, the script was automatically generated by ModelBuilder.)
To create a new script tool, right-click the toolbox or toolset to which you want to add the script and click Add > Script, as shown below.
Learn more about scripting