To Edgetech America's GIS Training Home Page

Introduction to GeoProcessing Scripts using Python

 


LENGTH OF CLASS: Two days (16 hours).

OVERVIEW

The ArcGIS geoprocessing framework includes a scripting environment, and Python® is the scripting language included with ArcGIS. This course introduces the Python scripting language and shows how it can be used to access and automate geoprocessing functionality. Students learn Python scripting syntax, then begin writing scripts to automate geoprocessing operations. Students also learn how to incorporate Python scripts as custom tools in ArcToolbox.

AUDIENCE

This course is designed for experienced ArcGIS users who want to learn how to automate everyday processes or create complex analytical scripts. ARC Macro Language (AML™) and Avenue programmers who want to write scripts for ArcGIS will also find the course of interest.

GOALS

Those completing this course will be able to:
  • Understand the basics of the Python scripting language.
  • Understand how scripts can be used in the ArcGIS geoprocessing framework.
  • Incorporate tools and environment settings into scripts.
  • Incorporate cursors, describe objects, and enumerations into scripts.
  • Work with scripts in ArcToolbox.
  • Access resources for debugging Python code

TOPICS COVERED     (Click here for a detailed table of contents)

  • The geoprocessing framework: ArcToolbox; Dialogs; Models; Command line; Scripts.
  • The basics of Python: Variables; Commenting code; String concatenation; Looping; Conditional statements; Modules.
  • Accessing tools and environment settings in scripts: The Geoprocessor ArcObject; Accessing the Geoprocessor from Python; Accessing tools and environment settings from Python.
  • The Geoprocessor object: The Geoprocessor Programming Model, the Geoprocessor (GpDispatch) object.
  • The describe objects: Access various properties for different data types (e.g., feature classes, workspaces, datasets, raster datasets, etc.).
  • The enumeration objects: Create lists of data (e.g., tables, rasters, feature classes, workspaces, fields, feature datasets, etc.)
  • The cursor objects: Search cursors; Insert cursors; Update cursors.
  • Incorporating scripts into the geoprocessing framework: Scripts as tools; Scripts in models.
  • Finding and fixing errors: Python error handling; Identifying syntax and logical errors.

PREREQUISITES AND RECOMMENDATIONS

Students should have completed ArcGIS Desktop II: Tools and Functionality, or have equivalent knowledge. Basic programming skills, such as using loops and conditional statements, are also required.

SOFTWARE USED IN THE COURSE

Although a lot of the functionality is available from within ArcView or ArcEditor, this course is designed to work with the following software:
ArcGIS Desktop Version
ArcView, ArcEditor, ArcInfo 9.3
Other  
PythonWin 2.5

SCHEDULE & REGISTRATION INFORMATION

Currently, this course is offered by an Edgetech business partner and only to groups of three or more trainees. Please contact us to schedule a class at your location or a nearby facility.

 


| Contact Us | Home | Consulting | Programming | Training | Analysis | Software | Data |
| Jobs | News | Maps |

This Internet site: www.edgetech-us.com or discoverGIS.com
Copyright © 1997-2011. Edgetech America, Inc.

Last updated: December 15, 2011