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
- Getting started with Python in ArcGIS
- What you should know before watching this course
- ArcGIS project files throughout this course
- Scripting overview
- Where Python is used in ArcGIS
- Where to write your scripts: ArcGIS Notebooks
- Write your first Python script
- Python syntax rules
- Comments and pseudocode
- Use variables to make scripts flexible
- Work with numeric values
- Work with strings
- Working with strings in ArcGIS
- String manipulation
- String methods and functions
- Object-oriented programming (OOP) overview
- Incorporating Python libraries in a script
- The ArcPy library
- Writing a script that uses ArcPy
- ArcPy objects, properties, and methods
- Geoprocessing with Python and ArcPy
- Model builder for jump-starting your script
- The ArcGIS API for Python library: Getting to web GIS
- Working with lists
- List methods and functions
- Use loops to work with lists
- Write a script using list methods and a for-loop
- Nested loops
- Conditional statements
- Write a script using ArcGIS API
- Getting to the properties of GIS data with Describe
- Challenge: Properties of layers
- Solution: Properties of layers
- Read from and write to a text file
- Write a script that reads from and writes to a file
- Write a script that records broken links
- Challenge: Describe feature classes and write to a file
- Solution: Describe feature classes and write to a file
- Making scripts dynamic
- Creating a custom toolbox
- Creating help documentation for a script tool
- Next steps and additional resources
Taught by
TeachMeGIS with Jennifer Harrison