Geoprocessing with Python
For Module 6 we were introduced to Geoprocessing with Python which allows for creating script in Python that can be integrated into ArcMap. The first step is to import ArcPy as the first line of code and set the active workspace. These steps will allow the user to integrate Geoprocessing tools into the script. The tool name and toolbox alias is required to integrate Geoprocessing tools into Python.
Geoprocessing tools can be assessed using two different lines of syntax.
Along with system toolboxes, custom toolboxes can also be accessed in Python, but the custom toolbox must be imported.
This weeks assignment entailed importing ArcPy, adding XY coordinates using the AddXY tool, creating a Buffer with the Buffer tool and Dissolving the buffer into single features using the Dissolve tool. Once each task was performed a message was printed utilizing the GetMessages() function
|The screen cap shows the printed message after each Geoprocessing tool was ran.|
|Flowchart of my script that adds XY coordinates, creates 1000 meter buffer, and dissolves the hospital buffer.|