Learn how to automate tasks in ArcGIS using Python scripting. Find out how to manipulate maps, execute commands, and read and write files with custom Python scripts.
Overview
Syllabus
Introduction
- Leverage Python in ArcGIS
- What you should know
- Scripting overview
- Python throughout ArcGIS
- Compose and run scripts in an IDE
- Write your first script
- Use variables to make scripts flexible
- Work with numeric values
- Basic Python syntax rules
- Comment scripts
- Reserved words
- Special string characters
- Additional manipulations
- String functions
- Help for string functions
- Object-oriented programming (OOP) overview
- Objects, properties, and methods
- Incorporating site packages
- ArcGIS Python module
- Basics of ArcPy
- Help for ArcPy
- Use loops to work with lists
- Use the foreach loop
- Help for list functions
- Nested loops
- Conditional statements
- Read and write to a text file
- Write multiple records to a file
- Making scripts dynamic
- Command-line arguments
- Capture arguments in a list variable
- Work with toolboxes in ArcMap
- Creating a custom toolbox
- Documenting a script
- Next steps
Taught by
TeachMeGIS with Jennifer Harrison