Module 5 Lab
We were tasked with writing a script that creates a geodatabase, copies all feature classes from a data folder into it, then populates a dictionary with the names and populations of New Mexico county seat cities. This was by far the largest and most complicated script project I have done so far. It was without direction so I had to outline what I was thinking and try lines of commands to see if they would work and put it all together in the outline. One of the main issues I was toward the beginning of my process. I didn’t really understand what setting arcpy.env.workspace was doing. I thought it was just setting a default folder, but it actually controls where ArcPy looks for data and sometimes even affects how tools behave. When it was pointing to the wrong folder, ListFeatureClasses() just returned nothing, and I had no idea why. I also had so many issues with file paths like forgetting to use raw strings (r""), accidentally adding extra slashes, or copying paths from Win...