GIS Programming Week 5
This week I learned about manipulating spatial data within Python. I used what I learned to create a script that creates a new geodatabase, copies shapefile data to that new database, and creates a Search Cursor and dictionary to isolate and print County Seat cities in New Mexico and their respective population circa 2000. I found the first few steps of the lab straightforward, but first ran into trouble when creating the Search Cursor. At first, the output printed on the same line and looked very messy. To fix this, I ended each line by inserting an escape character <\n> to the script, which fixed that issue. I had the most trouble populating the empty dictionary. The output initially only gave me the last key in the dictionary, but I realized this was because the line of code creating the empty dictionary was blocking the for loop, so I moved it up a few lines and was able retrieve the whole dictionary successfully. I also ran into trouble while trying to place all of my print ...