Presentation is loading. Please wait.

Presentation is loading. Please wait.

String several geoprocessing processes

Similar presentations


Presentation on theme: "String several geoprocessing processes"— Presentation transcript:

1 String several geoprocessing processes
ArcGIS ModelBuilder String several geoprocessing processes

2 Model Builder Application in ArcGIS for creating macros
Custom programs that document and automate geoprocessing workflow Build a model once and run it multiple times using different input parameters

3

4 Tutorial 8-7 Open Tutorial8-7.mxd
In TOC, click List by drawing Order button Save map in MyExercise folder Set Geoprocessing options On main menu, click Geoprocessing, Geoprocessing Options Check – Overwrite the outputs of geoprocessing operations Click OK

5 Create a New Model On main menu click Windows, Catalog
Expand Chapter8 in the folder/file tree Right click Chapter8, click New and Toolbox, and rename new toolbox Chapter8.tbx Right click Chapter8.tbx and click New, Model

6 Join Table to the Layer to Dissolve
On main menu, click Windows, Search Click Tools from Search window Click Data Management tools link Scroll down and click Joins Drag Add Join tool to your model and drop it there Double click Add Join process in your model and make selections Layer Name = Tracks Input Join Field = FIPS Join Table = PghCrosswalk Output Join Field= STFID Clear Keep All check box Click model save button

7 Run the Partial Model Right click Add Join in model and click ‘Run’
Click Close Dissolve Tracts Type Dissolve in the search text box and click the Search button Drag and drop in the model Click the connect button Click Tracts output and click Dissolve processes and click ‘Input Features’ in the resulting context box

8 Click Model Selection Button
Double click Dissolve process in model and make selection Input Feature = Tracts Dissolve Field = PghCrooswalk.HOOD Statistics = POP2000, SUM Do same for Tracts.White and Tracts.Black OK Right click Dissolve output and click Add to Display Save model Right Click Dissolve process and click Run

9 Your Turn!! Search for Remove Join tool
Use output of add join as its input Open Remove Join process and check PghCrooswalk as the join to remove Run this process Reset the model Click Model, Validate Entire Model. Run the entire model by clicking model Run button

10 Generalize Element Labels
Right click Tracts element, click rename, type Basemap Ploygon Change other names similarly Save the model

11 Add Model Parameters Right click Basemap Polygons and click Model Parameter Similarly make other elements model parameters

12 Add Variables to Model Right click Add Join process, Click Make Variable, From Parameter, and Input Join Field Click anywhere in the white area of model to deselect elements Make Input Join Field a model parameter Similarly make variable for the output Join Field and make it model parameter

13 Add Labels for Documentation
Right Click white area, click Create Label, double click the resulting label and type Model to Dissolve a Subset of Basemap Polygons Right click the resulting label, click Display Properties and make appropriate changes Right click element and click Create Label Save model

14 Add Model name Click model on the model’s main menu and click Model Properties

15 Open and Run Model In catalog, right click the model, click open, and close the warning Click Show Help button at the bottom of the form (make changes if needed) Click Ok to run the model Save map and close ArcMap When a model is run from its tool dialog box, the output of the model (Dissolved) will not be added to the ArcMap table of contents, even though Add To Display was checked for the output variable. The reason is that when a model is run from its tool dialog box, the Add To Display setting is ignored. To add the output to the display, you must make the output variable a model parameter.

16


Download ppt "String several geoprocessing processes"

Similar presentations


Ads by Google