Introduction to Geoprocessing Scripts Using Python

Strictly by pre-registration only

What is this course about?

This course uses Python's language syntax and modules to access and automate geoprocessing workflows through Python scripts. These scripts can be run inside of the Python Integrated Development Environment, within the Python window in ArcMap, as custom tools within ArcToolbox, or shared as geoprocessing packages.

This course covers the ArcPy site package, which integrates Python scripts into the ArcGIS platform. With ArcPy, your scripts can access additional ArcGIS functionality to work with your maps and data beyond the geoprocessing framework

Course details




3 days




Development Course

Are there any prerequisites?

  • This course assumes basic familiarity with GIS concepts.
  • Some familiarity with Python and basic programming concepts is assumed.
  • Completion of ArcGIS 2: Essential Workflows or equivalent knowledge.

What skills will I learn?

After completing this course, you will be able to:

  • Work with the ArcPy site package in ArcMap and PyScripter for Python.
  • Understand commonly used ArcPy classes and functions.
  • Incorporate cursors, use the Describe function, and use Python lists in scripts.
  • Create geometry objects for creating and updating features and for input to geoprocessing  tools.
  • Create script tools and geoprocessing packages.
  • Automate map document layer and layout management using ArcPy.
  • Access resources for debugging Python code.
  • Change table and feature schema for migrating data to new feature classes and tables.

What can I expect?

  • Course topics

    Running Python scripts

    • Understanding Python fundamentals
    • Integrated Development Environment (IDE)
    • Running scripts in Python window
    • Use the PyScripter IDE
    • The ArcPy site package
    • ArcPy functions and classes
    • The ArcPy modules
    • Choosing a scripting environment
    • Tips and best practices
    • Run scripts in Python

    Describing data

    • The Describe function
    • Generic Describe object properties
    • Feature class Describe properties
    • Raster Describe properties
    • Describing a feature class and raster
    • Fill-in-the-blank
    • Work with the Describe object

    Automating scripts with lists

    • The ArcPy List functions
    • Explore the ArcPy List functions
    • Working with List functions
    • Working with da.Walk
    • List data
    • Automate scripts with the ArcPy List functions

    Working with selections

    • Selection tools in ArcMap
    • Terms commonly used when working with selections
    • Tools that accept feature layers
    • Working with a selection
    • The MakeFeatureLayer tool
    • The FieldInfo object
    • The AddFieldDelimiters function
    • Determining a workflow
    • Create a feature layer and get feature count
    • Work with feature layers and selections

    Working with cursors

    • The arcpy.da cursors
    • Exploring the data access cursors
    • Tips and best practices for arcpy.da Cursors
    • Using the SearchCursor
    • Evaluate data with the SearchCursor
    • Using the UpdateCursor
    • Alter existing data with the UpdateCursor
    • Using the InsertCursor
    • Work with the InsertCursor
    • Error handling with Python
    • Error handling with the try-except statement

    Working with geometry objects

    • Creating geometry objects
    • Creating Point geometry objects
    • Creating Polyline geometry objects
    • Creating Polygon geometry objects
    • The geometry object
    • Constructing multipart geometry
    • Constructing multipart polygons
    • Creating and updating feature geometry
    • Using a geometry object with geoprocessing tools
    • Accessing geometry objects
    • Work with geometry objects and cursors

    Sharing scripts

    • Terms commonly used when sharing scripts
    • Scripting advantages in ArcMap
    • Making scripts dynamic
    • Debugging scripts in PyScripter
    • Creating and sharing a script tool
    • Advantages of attaching a script to a custom tool
    • Using the Add Script wizard
    • Running a script
    • Sharing a script
    • Plan out a project
    • Share scripts through geoprocessing packages

    Automating map production

    • The arcpy.mapping module
    • Terms commonly used when working with the arcpy.mapping module
    • Using the arcpy.mapping module to modify map document contents
    • Referencing the map document
    • Listing map document contents
    • Managing layers
    • Managing layout elements
    • Publishing maps
    • Exporting maps and reports
    • Migrating scripts to ArcGIS Pro
    • Customizing symbology for map layers
    • Work with map document contents