Model Builder

From Wildsong
Revision as of 16:47, 26 April 2006 by Brian Wilson (talk | contribs)
Jump to navigationJump to search

ArcGIS 9.x has a new thing called "Model Builder" that lets you build scripts in the form of flow charts and then execute them.

The idea is to make programming more accessible for non-programmers.

The flow chart "language" is extremely limited as a programming medium, but it has one big advantage for learning to program in the ESRI domain. Once you have a "model" built and working, you can generate the equivalent Python code. (Model->Export->To Script->Python). This gives you a starting point for writing your own Python Geoprocessing scripts for use as components in Model Builder, or as standalone tools.

There used to be a joke in programming school back in the olden days that went like this: All flow charts can be simplified to this:

Though at the time this was (relatively) true, college professors never accepted it. You always had to flesh things out more. At the time, almost all programming then was procedural. Event driven models, MVC, objects, functional programming... all those things were in the future.

A procedural program starts at the top (well... at the left in this case) and flows from one box to the next until it completes. Using Model Builder is a tool for building procedural programs. The diagram above was built with Model Builder.