Wednesday, June 17, 2026

Module 6

 


The purpose of this lab was to create a nested loop using the search cursor function. In this script I created a text file for my information to be printed into. I set my fields in the search cursor to OID@, which will get the features object ID, SHAPE@, this will get the xy coordinates for each vertex in the multipart feature, and the "NAME" field. 
for the row i had to get the vertex for each row. i set the vertexid = 0,
for the point in row i used the getPart(0) function to get the vertex for each multpart feature, the set the vertex to add 1 to have the vertex id to increase with each new vertex. then I had the output in the txt file to print the OID, vertexid, x and y coordinates, and the NAME field for each vertex.

I enjoyed this lab this week. I feel like I learned a lot throughout this course but I still have a lot to learn when it comes to scripting. I'm happy to use what I have learned as a foundation for my scripting journey. 



Friday, June 12, 2026

module 5

 

The script for this weeks lab was to make a script that would create an empty database, copy over shapefiles from a folder, then list cities with populations for features that were County seats.

I think this lab was challenging but once i figured it out I was happy with my result. My biggest problem is usually syntax error. Most of the time when I'm setting my workspace I forget to put r before the file path.


Saturday, June 6, 2026

Module 4

 

In this weeks lab I used model builder and notebooks to create scripts to preform functions on shapefiles. In the screenshot above I used notebooks to create a script to add XY coordinates to a shapefile then add a 1000 meter buffer to the shapefile, dissolving the area into a single feature. I did this by utilizing he toolbox and copying the scripts after putting in my conditions. In the beginning of the script i had to add "arcpy.env.overwriteOutput = True" to avoid errors and stop manual prompt interruption's. I used the GetMessages() function to give the the start time and success messages you see in the screenshot.