Posts

Showing posts from June, 2025

Module 6 - Working with Geometries

Image
This week, in the sixth and final GIS Programming lab, was about  Working with Geometries.  This lab was utilizing geometry and geometries of ArcGIS to find the data we require with cursor and then plant them into a text file. This lab pushed more of what was previously learned and had us write our own code to search for the name, OID, and shape of certain features within the rivers shapefile. This was done in order for us to then transcribe the feature id, the vertices, the x and y coordinates and the name of the feature onto a text file. As you can see below the code worked and presented the selfsame results the example in class had.  Overall I had a good experience with this lab and working through this class has given me a broader appreciation for python. In closing, I hope the rest of the GIS certification classes will at least utilize or touch on python for the maps.

Module 5 - Exploring & Manipulating Data

Image
This week, in the fifth GIS Programming lab, was about  Exploring & Manipulating Data.  This lab was more geoprocessing, but also had us manipulate data in order to put it into a new geodatabase and list certain features. As you can see below here is what the code printed. As you can see above the code worked as intended. It displays the processing of making the geodatabase and then copying over the features we need for the lab with the time taken. We then are able to use the cursor tool to list each feature type that has a county seat with the city name and population as of 2000. Lastly you can see how we made a dictionary for all these cities while also listing their population. Overall the coding took time but after many trials and errors it came out well as seen above. Also, I made a flowchart when working on this to try and help me complete the lab, you can see it below. Overall this lab was another great foray into learning python and utilizing it with ArcGIS. I can'...

Module 4 - Geoprocessing

Image
This week, in the fourth GIS Programming lab, was about  Geoprocessing.  This lab had us utilize what we had learned from the last few lessons and write code on our own without a supplied script. The cumulative result is the the messages in ArcGIS Notebook you see below. Now, allow me to now to explain through my process summary notes on how I was able to write this script and get these results. For this lab, with concerns to designing my own script, was from utilizing what I had learned and what I could learn from the lab. To start I made sure I imported both my os and arcpy as I knew it would be important for checking the code in idle later despite running the code in notebook. For adding the XY coordinates, I looked at the examples in the lab instructions from ESRI. I first set up my workspace and set it to my data folders as I knew it would be important for using my data. From there it was reading the code example on ESRI and implementing it how I thought it should be used...

Module 3 - Debugging and Error Handling

Image
This week, in the third GIS Programming lab, was about  Debugging and Error Handling. This lab was another expansion on what was learned in the last two labs by debugging and handling errors in scripts given to us. This lab had a total of three different scripts, varying in the complexity of their errors for us to check and change. The first script, which you can see the results of below, was light with errors to fix. Mostly concerning syntax errors and inconsistent naming of certain executions or functions. The second script was more hands on, with more light errors to fix but also an error of the ArcGIS application encountered with a save function. Luckily, through research, I was able to resolve the error and have the results print cleanly below. The last script was more about executing a try except statement to get around an error code that was caused in the script. As you can see in my flow chart I figured to best way was to make the code execute under a try statement and if i...