executing-tools-in-modelbuilder-tutorial.pdf

(727 KB) Pobierz
727207278 UNPDF
ModelBuilder - Executing
Tools Tutorial
Copyright © 1995-2010 Esri All rights reserved.
727207278.005.png
ModelBuilder - Executing Tools Tutorial
Table of Contents
Copyright © 1995-2010 Esri. All rights reserved.
2
ModelBuilder - Executing Tools Tutorial
Tutorial: Executing tools in ModelBuilder
This tutorial takes you step-by-step through creating a model and executing
tools in ModelBuilder. You start by adding a tool to ModelBuilder and
supplying values for the tool's parameters. This constructs a process. A
model is built by connecting processes.
Complexity:
Beginner
Data Requirement:
ArcGIS Tutorial Data Setup
Goal:
Learn how to execute tools in
ModelBuilder.
This tutorial builds a very simple model that identifies the vegetation types
near proposed roads. In the model, the roads are first buffered using values
from a distance field in the roads attribute table. The output from the Buffer tool is used to clip the vegetation
data to create a dataset of vegetation types within the buffer polygons.
The tutorial is composed of six broad steps:
Steps:
1. Copy tutorial data
2. Open the map document
3. Create a new model
4. Add tools and data to the model
5. Fill in the tool parameters
6. Run the model
7. Save the model
1—Copying tutorial data
It is assumed that you have installed ArcGIS Desktop (ArcView, ArcEditor, or ArcInfo) before you begin this
tutorial. The data required for this tutorial (included on the ArcGIS Desktop CD) by default is installed in
C:\arcgis\ArcTutor . The tutorial scenario is fictitious, and the original data has been adapted for the
tutorial.
Steps:
1. To avoid corrupting the original data, copy the ModelBuilder folder from
C:\arcgis\ArcTutor to the C drive on your computer. If you are copying the data to another
drive or location, make sure to use that location for all the steps below.
2—Opening the map document
Browse to the C:\ModelBuilder folder in Windows Explorer and double click the Extract Vegetation.mxd.
This will start ArcMap and open the map document, or
Steps:
1. Start ArcMap by clicking Start > All Programs > ArcGIS > ArcMap 10.
2. On the ArcMap - Getting Started dialog box, click Existing Maps > Browse for more.
The Open ArcMap Document dialog box appears.
Copyright © 1995-2010 Esri. All rights reserved.
3
727207278.006.png
ModelBuilder - Executing Tools Tutorial
3. Browse to C:\ModelBuilder folder, select Extract Vegetation.mxd, and click Open .
This opens the Extract Vegetation.mxd.
3—Creating a new model
Steps:
1. Click the ModelBuilder button on the ArcMap Standard toolbar.
This opens the ModelBuilder window for editing.
You can also create a new model by right-clicking an existing toolbox and choosing New >
Model . This creates a model in the toolbox with a default name and opens the model for
editing.
4—Adding tools and data to a model
Now that the model is open for editing, you will add two tools using the Search window:
Steps:
1. In ArcMap, click Geoprocessing > Search For Tools .
This opens a Search window that you can dock anywhere in ArcMap.
2. On the Search window, type Buffer , then click the Search button .
The Buffer tool is listed along with other search items.
3. Drag the search item Buffer (Analysis) (which represents the Buffer tool found in the Analysis
toolbox) onto the ModelBuilder canvas in the white space.
Copyright © 1995-2010 Esri. All rights reserved.
4
727207278.007.png 727207278.008.png
ModelBuilder - Executing Tools Tutorial
This adds the tool and the output data variable to the model. The output variable is connected
to the tool by a connector. Both the tool and output data are empty (without color) as none of
the tool parameters have been supplied.
4. Search for and add the Clip tool in the Analysis toolbox in a similar manner. If the two tools
overlap, click the Auto Layout button on the ModelBuilder toolbar to arrange the tools.
There are two other methods to add tools in a model that are not used in this tutorial, but have
been listed to introduce you to them:
• In the Catalog window, navigate to Toolboxes > System Toolboxes > Analysis Tools
> Proximity . You can select Buffer and drag the tool onto the ModelBuilder canvas in
the white space.
• On the ModelBuilder Standard toolbar you can click the Add Data or Tool button ,
and navigate to Toolboxes > System Toolboxes > Analysis Tools > Proximity .
Select the Buffer tool and click Add .
Copyright © 1995-2010 Esri. All rights reserved.
5
727207278.001.png 727207278.002.png 727207278.003.png 727207278.004.png
Zgłoś jeśli naruszono regulamin