From the course: Python Scripting Using the ArcGIS API for Python

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

An example: Walking through a geoprocessing script

An example: Walking through a geoprocessing script

From the course: Python Scripting Using the ArcGIS API for Python

An example: Walking through a geoprocessing script

- [Instructor] All right, I'm going to walk you guys through an example of a little geo processing script from start to finish. I'm going to write a script to find the types of soils near trails in our city to help our parks and recreation staff plan for potential erosion issues after a heavy rainfall. I have two feature services, one for trails and one for soils. I already have them open here in ArcGIS Pro. I'll also take a look at their rest endpoints just to confirm that I have the correct URLs. So this is the URL for the trails, off street hike and bike trails. And this is the URL for the soil type. Remember we can check the URL to get an idea about the data that we're about to work with. I didn't have to check the URL because I already had it open over here in Pro, but I like to check it just to make sure I have the URL spelled correctly. So let's start writing the script. The first thing I'm going to do is to import all of the modules that I need. First, I'll import GIS…

Contents